Skip to content

Publish πŸš€

Publish πŸš€ #1

Workflow file for this run

name: GitHub Actions Demo
run-name: Publish πŸš€
on: [push]
jobs:
gh-pages:
runs-on: ubuntu-latest
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- name: Install dependecies
run: npm ci
- name: Build
run: npm run build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: .
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4