mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
Create gh-pages.yml
This commit is contained in:
parent
bed7521916
commit
979111bfb6
1 changed files with 67 additions and 0 deletions
67
.github/workflows/gh-pages.yml
vendored
Normal file
67
.github/workflows/gh-pages.yml
vendored
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
name: Deploy to Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Runs on pushes targeting the default branch
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||||
|
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Single deploy job since we're just deploying
|
||||||
|
deploy:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup Pages
|
||||||
|
uses: actions/configure-pages@v5
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 9
|
||||||
|
- name: Use Node.js 23
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 23
|
||||||
|
cache: 'pnpm'
|
||||||
|
- name: install wbg
|
||||||
|
uses: jetli/wasm-bindgen-action@v0.2.0
|
||||||
|
with:
|
||||||
|
version: "0.2.100"
|
||||||
|
- name: Setup Binaryen
|
||||||
|
uses: Aandreba/setup-binaryen@v1.0.0
|
||||||
|
with:
|
||||||
|
token: ${{ github.token }}
|
||||||
|
- name: build epoxy
|
||||||
|
working-directory: 'client'
|
||||||
|
run: 'bash publish.sh'
|
||||||
|
- name: Install dependencies
|
||||||
|
working-directory: 'client-showcase'
|
||||||
|
run: 'pnpm i'
|
||||||
|
- name: Build
|
||||||
|
working-directory: 'client-showcase'
|
||||||
|
run: 'pnpm run build'
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
with:
|
||||||
|
path: 'client-showcase/dist'
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
Loading…
Add table
Add a link
Reference in a new issue