Skip to content

ci: use actions/upload-artifact #3

ci: use actions/upload-artifact

ci: use actions/upload-artifact #3

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- saga
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: npm
- name: Install dependencies
run: npm ci --no-audit
- name: Build
run: npm run build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4