mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-25 12:25:02 -05:00
👷 CI config for publishing to S3. (#19)
This commit is contained in:
32
.github/workflows/publish.yaml
vendored
Normal file
32
.github/workflows/publish.yaml
vendored
Normal 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/
|
Reference in New Issue
Block a user