Skip to content

Update main.yml

Update main.yml #2

Workflow file for this run

name: Deploy
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: install dependencies
run: npm ci
- name: build app
run: npm run build && npm run gh-pages:404
env:
PUBLIC_URL: /66bit-frontend
- name: upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
- name: deploy to github pages
id: deployment
uses: actions/deploy-pages@v1