Skip to content

Update deployment action #77

Update deployment action

Update deployment action #77

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 35, Col: 16): Unrecognized named-value: 'outputs'. Located at position 1 within expression: outputs.setup-node.node-version .github/workflows/deploy.yml (Line: 36, Col: 25): Unrecognized named-value: 'outputs'. Located at position 1 within expression: outputs.setup-node.node-version
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 }}