Host Modules on GitHub Pages #1
Workflow file for this run
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 | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
deploy-pages: | |
name: Deploy Pages | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
pages: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deploy-pages.outputs.page_url }} | |
concurrency: | |
group: pages | |
cancel-in-progress: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.2 | |
with: | |
fetch-depth: 0 | |
- name: Copy Modules | |
run: | | |
mkdir -p build/page | |
cp cmake/GitCheckout.cmake build/page/$(git branch --show-current) | |
for tag in $(git tag); do | |
git checkout $tag | |
cp cmake/GitCheckout.cmake build/page/$tag | |
done | |
- name: Upload Documentation | |
uses: actions/upload-pages-artifact@v3.0.1 | |
with: | |
path: build/page | |
- name: Deploy Pages | |
id: deploy-pages | |
uses: actions/deploy-pages@v4.0.5 |