-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to get github workflows running (#156)
* Empty commit to test workflows * speedier? * push to stage * new ruby action * ok * more * skip the photos page * fix pngout * bump misspell * chatgpt says this * try new bundle cache * update release too * REVERTME: add a message on the about page * scoot this * testing needs the scoot too * cleanup * run on master * cleanup * cleanup * remove this --------- Co-authored-by: Dana Merrick <[email protected]>
- Loading branch information
Showing
4 changed files
with
50 additions
and
40 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
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 |
---|---|---|
|
@@ -3,38 +3,44 @@ on: | |
push: | ||
tags: | ||
- v* | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: get-version | ||
uses: battila7/get-version-action@v2 | ||
- uses: actions/checkout@v2 | ||
- name: Install Ruby | ||
uses: actions/setup-ruby@v1 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
#TODO: bring this back to 2.7 | ||
ruby-version: '2.6' | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: Install Gems | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: Install pngout | ||
run: | | ||
gem install bundler | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
sudo apt-get update | ||
sudo apt-get install -y wget | ||
wget https://www.jonof.id.au/files/kenutils/pngout-20200115-linux.tar.gz | ||
tar -xvf pngout-20200115-linux.tar.gz | ||
sudo mv pngout-20200115-linux/amd64/pngout /usr/local/bin/ | ||
rm -rf pngout-20200115-linux* | ||
- name: Build the static site | ||
run: bundle exec middleman build --bail | ||
- name: Push the static site to prod | ||
- name: Push the static site to stage | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.CI_PROD_AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_PROD_AWS_SECRET_ACCESS_KEY }} | ||
PROD_S3_BUCKET: ${{ secrets.PROD_S3_BUCKET }} | ||
run: aws s3 sync build $PROD_S3_BUCKET/build/ | ||
AWS_ACCESS_KEY_ID: ${{ secrets.CI_AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_AWS_SECRET_ACCESS_KEY }} | ||
S3_BUCKET: ${{ secrets.STAGE_S3_BUCKET }} | ||
run: aws s3 sync build $S3_BUCKET/build/ | ||
# - name: Push the static site to prod | ||
# env: | ||
# AWS_ACCESS_KEY_ID: ${{ secrets.CI_PROD_AWS_ACCESS_KEY_ID }} | ||
# AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_PROD_AWS_SECRET_ACCESS_KEY }} | ||
# S3_BUCKET: ${{ secrets.PROD_S3_BUCKET }} | ||
# run: aws s3 sync build $S3_BUCKET/build/ | ||
|
||
- name: Post Discord notification | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
|
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,23 +20,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Ruby | ||
uses: actions/setup-ruby@v1 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
#TODO: bring this back to 2.7 | ||
ruby-version: '2.6' | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- name: Install Gems | ||
run: | | ||
gem install bundler | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- run: echo $ENV | ||
- name: Attempt to build the static site | ||
run: bundle exec middleman build --bail | ||
|
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