Binary entity (de)-serialization #1199
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: Publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| name: GitHub Pages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: '1.25.x' | |
| - name: Install dependencies | |
| run: go get ./... | |
| - name: Run doc tests | |
| run: | | |
| cd ./docs/content/ | |
| go test -v ./... | |
| - name: Run benchmark tables | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| run: | | |
| cd benchmark | |
| go run ./table 3 | tee ../docs/content/generated/_benchmarks.md | |
| - name: Dummy benchmark tables | |
| if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/main' }} | |
| run: | | |
| echo "Benchmarks skipped" > docs/content/generated/_benchmarks.md | |
| - name: Setup Hugo | |
| uses: peaceiris/actions-hugo@v2 | |
| with: | |
| hugo-version: '0.143.1' | |
| - name: Build Site | |
| run: hugo -s docs --noChmod | |
| - name: Archive artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: public | |
| path: docs/public | |
| - name: Deploy to GitHub Pages | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| uses: crazy-max/ghaction-github-pages@v4 | |
| with: | |
| target_branch: gh-pages | |
| build_dir: docs/public | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |