👷 CI config for publishing to S3. (#19)

This commit is contained in:
Noah Kantrowitz
2024-03-21 22:11:51 -07:00
committed by GitHub
parent ddad03e463
commit a92f6c9b84

32
.github/workflows/publish.yaml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: publish
on:
push:
branches:
- master
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::353102230615:role/cardconjurer-publish
- name: Restore file timestamps
uses: chetan/git-restore-mtime-action@v2
- name: Sync files to the S3 bucket
run: |
aws s3 sync --exclude '.git/*' --delete ./ s3://cardconjurer.app/