Skip to content

Staging Deployment #324

Staging Deployment

Staging Deployment #324

Workflow file for this run

name: Staging Deployment
#env:
# ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
# FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
on:
workflow_dispatch:
push:
branches:
- main
- vite_build
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies and build artifacts
run: |
npm install
npm run build
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: dist/ # changed from "build" to "dist" for vite build
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-views
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4