File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ Logging in from a remote server looks like this:
2929 * Copy the address of that page
3030 * Paste it into the terminal where ` butler login ` is running, and press enter.
3131
32- ## Running butler from CI builds (Travis CI, Gitlab CI etc.)
32+ ## Running butler from CI builds (GitHub Actions, GitLab CI, etc.)
3333
3434If you're using butler to push builds from a continuous integration environment such
35- as [ Travis CI ] ( https://travis-ci.org/ ) , [ Gitlab CI ] ( https://about.gitlab. com/gitlab-ci/ ) , or
36- [ Jenkins ] ( https://jenkins.io / ) , the easiest way to go is:
35+ as [ GitHub Actions ] ( https://github. com/features/actions ) or
36+ [ GitLab CI ] ( https://docs.gitlab.com/ci / ) , the easiest way to go is:
3737
3838 * Go through the ` butler login ` flow locally
3939 * In your CI configuration, set the environment variable ` BUTLER_API_KEY `
Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ async function main() {
2424 $ ( `gitbook build` ) ;
2525 } ) ;
2626
27- if ( process . env . CI_COMMIT_REF_NAME ) {
28- $ ( `gsutil -m cp -r -a public-read docs/_book/* gs://docs.itch.zone/butler/${ process . env . CI_COMMIT_REF_NAME } /` ) ;
27+ if ( process . env . GITHUB_REF_NAME ) {
28+ $ ( `gsutil -m cp -r -a public-read docs/_book/* gs://docs.itch.zone/butler/${ process . env . GITHUB_REF_NAME } /` ) ;
2929 } else {
30- console . warn ( "Skipping uploading book, no CI_COMMIT_REF_NAME environment variable set" )
30+ console . warn ( "Skipping uploading book, no GITHUB_REF_NAME environment variable set" )
3131 }
3232}
3333
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ async function main() {
1111 $ ( `go get -v -x ./butlerd/generous` ) ;
1212 $ ( `generous godocs` ) ;
1313
14- if ( process . env . CI_COMMIT_REF_NAME ) {
15- $ ( `gsutil -m cp -r -a public-read ./butlerd/generous/docs/* gs://docs.itch.zone/butlerd/${ process . env . CI_COMMIT_REF_NAME } /` ) ;
14+ if ( process . env . GITHUB_REF_NAME ) {
15+ $ ( `gsutil -m cp -r -a public-read ./butlerd/generous/docs/* gs://docs.itch.zone/butlerd/${ process . env . GITHUB_REF_NAME } /` ) ;
1616 } else {
17- console . warn ( "Skipping uploading generous docs, no CI_COMMIT_REF_NAME environment variable set" )
17+ console . warn ( "Skipping uploading generous docs, no GITHUB_REF_NAME environment variable set" )
1818 }
1919}
2020
You can’t perform that action at this time.
0 commit comments