Skip to content

Merge pull request #2 from ResearchCubeMod/main #2

Merge pull request #2 from ResearchCubeMod/main

Merge pull request #2 from ResearchCubeMod/main #2

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [live]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run build
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: dist
- id: deployment
uses: actions/deploy-pages@v4
notification:
runs-on: ubuntu-latest
needs: [build-and-deploy]
steps:
- name: Notify
run: |
curl --fail-with-body --show-error --silent --request POST --url ${{ secrets.DEPLOY_HOOK }} --header 'content-type: application/json' --data '${{ secrets.DEPLOY_MSG }}'