Skip to content

deploy-master

deploy-master #25

name: deploy-master
on:
schedule:
- cron: '42 */12 * * *'
push:
branches: [ master, main ]
paths-ignore:
- '/docs/**'
- '.github/workflows/*'
- '!.github/workflows/deploy-master.yaml'
repository_dispatch:
types: [ deploy-master ]
workflow_dispatch:
jobs:
build:
name: Build site
runs-on: ubuntu-latest
environment:
name: production
url: https://sdo-register.paneron.org
steps:
- name: Use Node
uses: actions/setup-node@v4
with:
node-version: '20.11.0'
- uses: actions/checkout@master
- name: Build
run: |
npx @paneron/[email protected] --outdir dist --datadir sdo-register
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4