|
@@ -1,39 +1,53 @@
|
|
|
name: CI
|
|
name: CI
|
|
|
|
|
|
|
|
|
|
+# Update pins with: pinact run -update
|
|
|
|
|
+# Check for issues with: zizmor --pedantic .github/workflows/ci.yml
|
|
|
|
|
+
|
|
|
|
|
+concurrency:
|
|
|
|
|
+ group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
|
+ cancel-in-progress: true
|
|
|
|
|
+
|
|
|
on:
|
|
on:
|
|
|
push:
|
|
push:
|
|
|
branches: main
|
|
branches: main
|
|
|
pull_request:
|
|
pull_request:
|
|
|
|
|
|
|
|
|
|
+permissions:
|
|
|
|
|
+ contents: read
|
|
|
|
|
+
|
|
|
jobs:
|
|
jobs:
|
|
|
build:
|
|
build:
|
|
|
|
|
+ name: Build
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
- - uses: actions/checkout@v6
|
|
|
|
|
- - uses: lycheeverse/lychee-action@v2
|
|
|
|
|
|
|
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
|
|
|
+ with:
|
|
|
|
|
+ persist-credentials: false
|
|
|
|
|
+ - uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
|
|
|
with:
|
|
with:
|
|
|
args: --verbose --no-progress --accept 200,429 README.md
|
|
args: --verbose --no-progress --accept 200,429 README.md
|
|
|
fail: true
|
|
fail: true
|
|
|
- - uses: actions/setup-python@v5
|
|
|
|
|
|
|
+ - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
|
with:
|
|
with:
|
|
|
python-version: "3.14"
|
|
python-version: "3.14"
|
|
|
- run: python .github/api.py
|
|
- run: python .github/api.py
|
|
|
- - uses: actions/upload-pages-artifact@v3
|
|
|
|
|
|
|
+ - uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
|
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
|
with:
|
|
with:
|
|
|
path: ./dist
|
|
path: ./dist
|
|
|
|
|
|
|
|
deploy:
|
|
deploy:
|
|
|
|
|
+ name: Deploy
|
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
needs: build
|
|
needs: build
|
|
|
permissions:
|
|
permissions:
|
|
|
- pages: write
|
|
|
|
|
- id-token: write
|
|
|
|
|
|
|
+ pages: write # To deploy to GitHub Pages
|
|
|
|
|
+ id-token: write # For OIDC authentication with actions/deploy-pages
|
|
|
environment:
|
|
environment:
|
|
|
name: github-pages
|
|
name: github-pages
|
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
steps:
|
|
steps:
|
|
|
- - uses: actions/deploy-pages@v4
|
|
|
|
|
|
|
+ - uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
|
|
|
id: deployment
|
|
id: deployment
|