Skip to content

Release heap-dump-companion #7

Release heap-dump-companion

Release heap-dump-companion #7

---
name: Release heap-dump-companion
on:
release:
types: [created]
env:
PROJECT_PATH: heap-dump-companion
jobs:
release-companion:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.22'
- name: Go Test
run: |
cd ${{ env.PROJECT_PATH }}
go test -v ./...
- name: Trivy Scan
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
path: ${{ env.PROJECT_PATH }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
workdir: ${{ env.PROJECT_PATH }}
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}