Skip to content

Add currently-enabled workflow to release windows #6

Add currently-enabled workflow to release windows

Add currently-enabled workflow to release windows #6

---
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 --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"