Skip to content

(web) Publish Website to GitHub Pages #1480

(web) Publish Website to GitHub Pages

(web) Publish Website to GitHub Pages #1480

Workflow file for this run

name: (web) Publish Website to GitHub Pages
on:
workflow_dispatch:
repository_dispatch:
types: [cms_content_changed]
push:
branches:
- main
paths:
- "web/**"
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: "${{ github.workflow }} @ ${{ github.head_ref || github.ref }}"
cancel-in-progress: true
env:
CHATBOT_BASE_URL: https://chatbot.young-carers-austria.at
INSIGHTS_BASE_URL: https://youngcarersaustria.matomo.cloud/
INSIGHTS_IDSITE: 1
permissions:
contents: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node
uses: bahmutov/npm-install@v1
with:
working-directory: web
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
npm ci
npm run build
working-directory: web
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./web/_site
publish_branch: website