Skip to content

chore(deps): update actions/setup-go action to v5 (#29) #17

chore(deps): update actions/setup-go action to v5 (#29)

chore(deps): update actions/setup-go action to v5 (#29) #17

Workflow file for this run

---
name: Publish
on:
push:
branches:
- main
env:
GO_VERSION: '1.21'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Build
run: |
go run mage.go build
echo 'playground.coraza.io' > ./www/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./www