Update from TinaCMS #1166
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: github pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true # Fetch Hugo themes (true OR recursive) | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.54.0' | |
extended: true | |
# - name: Setup Node | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: "20" | |
# cache: yarn | |
# | |
# - name: Install dependencies | |
# run: yarn install | |
# | |
# - name: Build TinaCMS | |
# env: | |
# TINA_PUBLIC_CLIENT_ID: ${{ secrets.TINA_PUBLIC_CLIENT_ID }} | |
# TINA_TOKEN: ${{ secrets.TINA_TOKEN }} | |
# run: yarn build | |
- name: Build | |
run: hugo --minify | |
- name: Enable Admin Page | |
run: rm -f ./public/admin/.gitignore | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
external_repository: projekthilfe-uganda/projekthilfe-uganda.github.io | |
publish_branch: master | |
publish_dir: ./public |