Skip to content

👷 ci: use mathema token #67

👷 ci: use mathema token

👷 ci: use mathema token #67

Workflow file for this run

name: Deploy pages
on:
push:
branches:
- 2024-magdeburger-dev-days
- main
jobs:
deploy:
env:
PRESENTATION_FOLDER: 'presentation'
TARGET_REPO_NAME: '2024-05-md-dev-days-fp-intro-csharp-fsharp'
TARGET_GITHUB_OWNER: 'MATHEMA-GmbH'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: |
cd ${{ env.PRESENTATION_FOLDER }}
npm install
- name: Build
run: |
cd ${{ env.PRESENTATION_FOLDER }}
npm run build -- --base '/${{ env.TARGET_REPO_NAME }}/'
- name: Deploy to target repository
uses: JamesIves/github-pages-deploy-action@v4
with:
single-commit: true
folder: ${{ env.PRESENTATION_FOLDER }}/dist # The folder the action should deploy
repository-name: '${{ env.TARGET_GITHUB_OWNER }}/${{ env.TARGET_REPO_NAME }}'
token: ${{ secrets.MATHEMA_GH_TOKEN }}