Skip to content

Release

Release #37

Workflow file for this run

name: Release
on:
release:
types: [created]
env:
GORELEASER_VERSION: v1.24.0
GO_VERSION: 1.21.1
permissions:
contents: write
jobs:
go-test:
name: Test
uses: ./.github/workflows/test.yml
goreleaser:
name: Release World CLI binary
runs-on: namespace-profile-linux-4vcpu-8gb-cached
needs: go-test
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
## skip cache, use Namespace volume cache
cache: false
- name: Setup Namespace cache
uses: namespacelabs/nscloud-cache-action@v1
with:
cache: go
- name: Run World CLI goreleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: ${{ env.GORELEASER_VERSION }}
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SENTRY_DSN: "${{ secrets.SENTRY_DSN }}"
POSTHOG_API_KEY: "${{ secrets.POSTHOG_API_KEY }}"