v1.10-alpha #11
Workflow file for this run
This file contains hidden or 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: Build & Attach Release Artifacts | |
| permissions: | |
| contents: write | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Bikeshed | |
| run: | | |
| pipx install bikeshed | |
| bikeshed update | |
| - name: Build HTML | |
| run: bikeshed spec spec.bs index.html | |
| - name: Create PDF (wkhtmltopdf) | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y wkhtmltopdf | |
| wkhtmltopdf index.html slim-v${{ github.event.release.tag_name }}.pdf | |
| - name: Upload assets to release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| index.html | |
| slim-v${{ github.event.release.tag_name }}.pdf | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |