π Add sensible title to README #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy pages | |
on: | |
push: | |
branches: | |
- it-tage-frankfurt | |
- it-tage-workshop | |
- main | |
jobs: | |
deploy: | |
env: | |
PRESENTATION_FOLDER: 'presentation' | |
TARGET_REPO_NAME: '2023-12-it-tage-fp-intro-csharp-fsharp' | |
TARGET_GITHUB_OWNER: 'MATHEMA-GmbH' | |
runs-on: ubuntu-latest | |
steps: | |
- name: debugging | |
run: | | |
x=${{ secrets.MATHEMA_GH_TOKEN }} | |
n=${#x} | |
echo "Length of token is: $n" | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: | | |
cd ${{ env.PRESENTATION_FOLDER }} | |
npm install | |
- name: Install slidev | |
run: | | |
cd ${{ env.PRESENTATION_FOLDER }} | |
npm i -g @slidev/cli | |
npm i -g @slidev/theme-default unplugin-icons @iconify/json playwright-chromium | |
# Ensure to set the base directory to the current branch name | |
- name: Build | |
run: | | |
cd ${{ env.PRESENTATION_FOLDER }} | |
slidev 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 }} |