Skip to content

๐Ÿ—‘๏ธ ci: remove build param from action #10

๐Ÿ—‘๏ธ ci: remove build param from action

๐Ÿ—‘๏ธ ci: remove build param from action #10

name: Deploy website
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "npm"
cache-dependency-path: website/package-lock.json
- run: npm ci
working-directory: ./website
- run: npm run build
working-directory: ./website
- uses: actions/upload-pages-artifact@v3.0.1
with:
name: "website-build-artifact"
path: ./website/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
with:
artifact_name: "website-build-artifact"