2021-02-02 14:07:02 +01:00
|
|
|
name: 'Deploy'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
s3:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-09-22 15:22:31 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
2022-12-01 13:11:52 +01:00
|
|
|
with:
|
|
|
|
node-version: 18
|
2022-09-22 15:22:31 +02:00
|
|
|
- run: npm ci
|
2021-02-02 14:07:02 +01:00
|
|
|
|
2022-12-05 12:50:53 +01:00
|
|
|
- run: npm run build:static
|
2021-02-02 14:07:02 +01:00
|
|
|
env:
|
2021-10-27 19:07:11 +02:00
|
|
|
NEXT_PUBLIC_INFURA_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_INFURA_PROJECT_ID }}
|
2021-02-02 14:07:02 +01:00
|
|
|
|
|
|
|
- run: npm run deploy:s3
|
|
|
|
env:
|
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
|