chore: bump workflows to use Ubuntu 24.04 (#132) #50
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: | |
push: | |
branches: [main] | |
tags: ["**"] | |
jobs: | |
deploy-pages: | |
name: Deploy Pages | |
runs-on: ubuntu-24.04 | |
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.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Copy Modules | |
run: | | |
mkdir -p build/page | |
git checkout main | |
cp cmake/GitCheckout.cmake build/page/main | |
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 |