Skip to content

Commit

Permalink
Publish as GitHub pages
Browse files Browse the repository at this point in the history
Co-authored-by: juli4nb4dillo <[email protected]>
  • Loading branch information
alexrudd2 and juli4nb4dillo committed Mar 1, 2025
1 parent fe57056 commit 1d4a567
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
File renamed without changes.
54 changes: 54 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Deploy to GitHub pages

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment

jobs:

pre-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Setup Node 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'
# install packages and build
- run: npm ci
- run: IS_WEB=1 npm run build:ui
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# upload build materials
path: 'dist/ui'

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: pre-publish
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

0 comments on commit 1d4a567

Please sign in to comment.