Skip to content

Commit

Permalink
Cache assets consistently with other projects in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlwilson committed Dec 24, 2021
1 parent 77cf731 commit 552dc4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
ruby-version: 2.7
bundler-cache: true # would run bundle install
- name: Run the build
run: bundle exec rake static_checks:all
Expand All @@ -36,15 +36,15 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
ruby-version: 2.7
bundler-cache: true # would run bundle install
- name: Set up user in git config
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
- name: Set up upstream and publish to gh pages
run: |
git remote add upstream 'https://github-actions:${GITHUB_PASSWORD}@github.com/gocd/api.go.cd'
bundle install
bundle exec rake publish --trace
env:
REMOTE_NAME: "upstream"
Expand All @@ -63,7 +63,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
ruby-version: 2.7
bundler-cache: true # would run bundle install
- name: Upload to S3
run: bundle exec rake upload_to_s3
2 changes: 1 addition & 1 deletion .github/workflows/pr_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
ruby-version: 2.7
bundler-cache: true # would run bundle install
- name: Run the build
run: bundle exec rake static_checks:all
Expand Down

0 comments on commit 552dc4c

Please sign in to comment.