Skip to content

Commit

Permalink
test new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mayo committed Sep 26, 2024
1 parent 3223a50 commit 93b19fa
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ jobs:
- name: Build site
run: make build

# - name: Save website artifact
# uses: actions/upload-artifact@v4
# with:
# name: website-${{ github.ref_name }}
# path: public/
- name: Save website artifact
uses: actions/upload-artifact@v4
with:
name: website-${{ github.ref_name }}
path: public/

deploy:
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write
steps:
# - name: Download website artifact
# uses: actions/download-artifact@v4
# with:
# name: ${{ inputs.artifact-name }}
# path: public
- name: Download website artifact
uses: actions/download-artifact@v4
with:
name: website-${{ github.ref_name }}
path: public

- name: Download tools
run: curl -LO https://github.com/mayo/oyam.ca-tools/releases/download/v0.0.1/deploy_aws_s3-x86_64-linux.zip
Expand All @@ -64,10 +64,21 @@ jobs:
#run: aws s3 sync --acl public-read --delete public/ s3://${{ env.S3_BUCKET }}/
run: ./sync_s3 --bucket ${{ env.S3_BUCKET }} public/ -v -a public-read -d | tee upload.log

- name: Save sync artifact
uses: actions/upload-artifact@v4
with:
name: sync-${{ github.ref_name }}
path: upload.log

purge-cache:
runs-on: ubuntu-latest
needs: deploy
steps:
- name: Download sync artifact
uses: actions/download-artifact@v4
with:
name: sync-${{ github.ref_name }}

- name: Do stuff
run: cat upload.log

Expand Down

0 comments on commit 93b19fa

Please sign in to comment.