Skip to content

Tweak CI script

Tweak CI script #4

Workflow file for this run

name: Deploy Gitbuilding Project to Github Pages
on:
push:
branches: [ master ]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: Compile
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
submodules: true
- name: Install Python 3
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Build
run: |
pip install setuptools
pip install gitbuilding
gitbuilding build-html
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: "_site/"
# 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@v1