Skip to content

chore: bump github actions to latest versions #1

chore: bump github actions to latest versions

chore: bump github actions to latest versions #1

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
paths: ['site/**']
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v6
- name: Inject version from latest release
id: version
env:
GH_TOKEN: ${{ github.token }}
run: |
VERSION=$(gh release view --json tagName --jq '.tagName' 2>/dev/null | sed 's/^v//' || echo "")
[ -n "$VERSION" ] && sed -i 's/"softwareVersion": "[^"]*"/"softwareVersion": "'"$VERSION"'"/' site/index.html
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v4
with:
path: './site'
- uses: actions/deploy-pages@v4
id: deployment