Update deployment action #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | ||
on: | ||
push: | ||
branches: [main] | ||
permissions: | ||
actions: read | ||
checks: read | ||
contents: read | ||
deployments: read | ||
issues: read | ||
pull-requests: read | ||
statuses: read | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
cache: "yarn" | ||
- name: Install dependencies | ||
run: yarn install --immutable --immutable-cache | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ${{ github.workspace }}/.next/cache | ||
key: v1-${{ runner.os }}-${{ outputs.setup-node.node-version }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.md', '**/*.css') }} | ||
Check failure on line 35 in .github/workflows/deploy.yml GitHub Actions / DeployInvalid workflow file
|
||
restore-keys: | | ||
v1-${{ runner.os }}-${{ outputs.setup-node.node-version }}-nextjs-${{ hashFiles('**/yarn.lock') }}- | ||
- name: Deploy | ||
run: yarn deploy | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |