Skip to content

ophie-practice-map.md: update to v2.0 #29

ophie-practice-map.md: update to v2.0

ophie-practice-map.md: update to v2.0 #29

Workflow file for this run

name: Deploy site
on:
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
# Default to bash
defaults:
run:
shell: bash
jobs:
# Build job
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/void-linux/void-glibc-full:latest
defaults:
run:
shell: sh
steps:
- name: Install build dependencies
run: |
xbps-install -Syu || xbps-install -Syu xbps
xbps-install -yu
xbps-install -y mmv-rs hugo git bash pnpm
- name: Checkout
id: checkout
uses: classabbyamp/treeless-checkout-action@v1
- name: Get rules
run: |
git clone --depth=1 https://github.com/MCBE-Speedrunning/Speedrunning-Rulebook content/rules
./prep.sh
./build.sh
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
run: |
hugo \
--minify --printMemoryUsage --printPathWarnings --printUnusedTemplates \
--baseURL "${{ steps.pages.outputs.base_path }}"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4