Create main.yml

This commit is contained in:
Lorenzo Iovino 2024-01-12 04:05:23 +01:00 committed by GitHub
parent e73797a150
commit 156c8eb993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

25
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Upload to S3
on:
push:
branches: [main]
jobs:
upload:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm run build
- uses: actions/checkout@master
- uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: 'dist/loreiov.com/browser'