Skip to content

Add deploy step to workflow #5

Add deploy step to workflow

Add deploy step to workflow #5

Workflow file for this run

name: Portfolio Build and Deploy
on:
workflow_dispatch:
push:
branches:
- [$default-branch]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: NPM
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Upload Artifact
uses: actions/upload-pages-artifact@v3
with:
path: "dist/"
deploy:

Check failure on line 36 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 36
name: Deploy
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v3