Skip to content

Commit

Permalink
chore: github-action: add artifacts #2
Browse files Browse the repository at this point in the history
  • Loading branch information
wicogohome committed Mar 27, 2024
1 parent f31c6ff commit 9b14a83
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,26 @@ jobs:
uses: borales/actions-yarn@v4
with:
cmd: run build # will run `yarn build` command
- name: Upload production artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: |
dist
s3-sync:
needs: yarn-build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: dist
- uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
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: dist
AWS_REGION: "ap-northeast-1"
SOURCE_DIR: dist

0 comments on commit 9b14a83

Please sign in to comment.