Skip to content

Commit

Permalink
[digitalocean deploy] delete upload build folder to aws s3
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Jul 9, 2024
1 parent 4b5344c commit e8cd562
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
tags:
- 'v*'

jobs:
publish:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -44,13 +43,13 @@ jobs:

- run: rm ./build/CNAME

- name: Deploy to aws s3(https://stcscan.io)
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --delete
env:
AWS_S3_BUCKET: 'stcscan.io'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'ap-northeast-1'
SOURCE_DIR: 'build'
# - name: Deploy to aws s3(https://stcscan.io)
# uses: jakejarvis/s3-sync-action@master
# with:
# args: --acl public-read --delete
# env:
# AWS_S3_BUCKET: 'stcscan.io'
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_REGION: 'ap-northeast-1'
# SOURCE_DIR: 'build'

0 comments on commit e8cd562

Please # to comment.