Skip to content

Commit

Permalink
Add currently-enabled workflow to release windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Oct 4, 2024
1 parent 7f6f270 commit 40ae82f
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
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
- 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: "docker/setup-qemu-action@v3"
- uses: "docker/setup-buildx-action@v3"
- 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"

0 comments on commit 40ae82f

Please sign in to comment.