Skip to content

Commit

Permalink
feat: split publish action to two steps
Browse files Browse the repository at this point in the history
  • Loading branch information
peterprototypes committed Sep 12, 2023
1 parent e49576a commit 62195c8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
name: Publish to AWS
name: Build and Publish to AWS
on:
push:
branches:
- main
jobs:
run:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- uses: taiki-e/install-action@v2
with:
tool: zola@0.17.2
- name: Build
run: zola build
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: reggionick/s3-deploy@v4
with:
folder: public
Expand Down

0 comments on commit 62195c8

Please sign in to comment.