Skip to content

Deply with gh deploy #1

Deply with gh deploy

Deply with gh deploy #1

Workflow file for this run

name: Deploy App
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "latest"
- name: Build App
run: |
npm i
npm run build
- name: Upload Web App Dist
uses: actions/upload-pages-artifact@v3
with:
path: ${{ github.workspace }}/dist
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4