-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache assets consistently with other projects in GH actions
- Loading branch information
1 parent
77cf731
commit 552dc4c
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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" | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters