Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dmerrick committed Jan 30, 2021
1 parent c7ef300 commit cf59138
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,31 @@ jobs:
steps:
- id: get-version
uses: battila7/get-version-action@v2
- name: Install Ruby
uses: actions/setup-ruby@v1
with:
#TODO: bring this back to 2.7
ruby-version: '2.6'
- uses: actions/checkout@v2
- uses: actions/cache@v1
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
- name: Build the static site
run: bundle exec middleman build --bail
- 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 }}
PROD_S3_BUCKET: ${{ secrets.PROD_S3_BUCKET }}
run: aws s3 sync build $PROD_S3_BUCKET/build/

- name: Post Discord notification
if: startsWith(github.ref, 'refs/tags/v')
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ jobs:
- run: echo $ENV
- name: Attempt to build the static site
run: bundle exec middleman build --bail
#TODO: actually do the push
- name: Push the static site to stage
env:
AWS_ACCESS_KEY_ID: ${{ secrets.CI_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_AWS_SECRET_ACCESS_KEY }}
# AWS_ROLE_ARN: ${{ secrets.CI_STAGE_AWS_ROLE_ARN }}
STAGE_S3_BUCKET: ${{ secrets.STAGE_S3_BUCKET }}
run: aws s3 ls $STAGE_S3_BUCKET
# run: aws --role-arn $AWS_ROLE_ARN s3 ls $STAGE_S3_BUCKET
run: aws s3 sync build $STAGE_S3_BUCKET/build/

0 comments on commit cf59138

Please sign in to comment.