fix: some fixes and enhancements #24
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: Export Codelab (PROD) | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
publish-codelab: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22.2' # The Go version to download (if necessary) and use. | |
- run: go install github.com/googlecodelabs/tools/claat@latest | |
- name: Export with CLAAT | |
run: mkdir -p ./public/ && claat export -f html -o public docs/workshop.md | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact | |
if: github.ref == 'refs/heads/main' # Authorize the deployment for the main branch only | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
# Upload entire repository | |
path: './public/observability-workshop' | |
- name: Deploy to GitHub Pages | |
if: github.ref == 'refs/heads/main' # Authorize the deployment for the main branch only | |
id: deployment | |
uses: actions/deploy-pages@v4 |