Add currently-enabled workflow to release windows #10
Workflow file for this run
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: "Release for Windows" | |
on: # yamllint disable-line rule:truthy | |
#push: | |
#tags: | |
#- "*" | |
pull_request: | |
branches: ["*"] | |
permissions: | |
contents: "write" | |
packages: "write" | |
jobs: | |
release-windows: | |
runs-on: "windows-latest" | |
steps: | |
- uses: "actions/checkout@v4" | |
with: | |
fetch-depth: 0 | |
# TODO: remove this | |
ref: "0d882c75108cced8ec030c54cc8cfec5320543af" | |
- uses: "authzed/actions/setup-go@main" | |
- uses: "nowsprinting/check-version-format-action@v4" | |
id: "version" | |
with: | |
prefix: "v" | |
#- name: "Fail for an invalid version (windows)" | |
#if: "${{ !startsWith(github.ref_name, 'v') || steps.version.outputs.is_valid != 'true' }}" | |
#run: 'echo "SpiceDB version must start with `v` and be a semver" && exit 1' | |
#shell: "bash" | |
- uses: "authzed/actions/docker-login@main" | |
with: | |
quayio_token: "${{ secrets.QUAYIO_PASSWORD }}" | |
github_token: "${{ secrets.GITHUB_TOKEN }}" | |
dockerhub_token: "${{ secrets.DOCKERHUB_ACCESS_TOKEN }}" | |
- uses: "goreleaser/goreleaser-action@v6" | |
with: | |
distribution: "goreleaser-pro" | |
# NOTE: keep in sync with goreleaser version in other job. | |
# github actions don't allow yaml anchors. | |
version: "2.3.2" | |
args: "release --clean --verbose --config=.goreleaser.windows.yml" | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
GORELEASER_KEY: "${{ secrets.GORELEASER_KEY }}" | |
CHOCOLATEY_API_KEY: "${{ secrets.CHOCOLATEY_API_KEY }}" | |
# TODO: remove these | |
GORELEASER_CURRENT_TAG: "v1.37.0" | |
GORELEASER_PREVIOUS_TAG: "v1.36.2" | |
- name: "Debug nuspec contents" | |
run: "cat dist/spicedb.choco/spicedb.nuspec" |