8000 chore: split release workflow so the majority happens on Linux by deansheather · Pull Request #2092 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

chore: split release workflow so the majority happens on Linux #2092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add dry-run functionality to release workflow
  • Loading branch information
deansheather committed Jun 6, 2022
commit 2b8d9cb83fb130eafe3c82a5ee0fadaeeb8c5d93
17 changes: 14 additions & 3 de 8000 letions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
tags:
- "v*"
workflow_dispatch:
inputs:
snapshot:
description: Perform a snapshot/dry-run release (required if the ref is not a tag)
type: boolean
required: true

jobs:
linux-windows:
Expand Down Expand Up @@ -53,7 +58,7 @@ jobs:
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release -f ./.goreleaser-linux.yaml --rm-dist --timeout 60m --snapshot
args: release -f ./.goreleaser-release-linux.yaml --rm-dist --timeout 60m --skip-publish --skip-announce ${{ github.event.inputs.snapshot && '--snapshot' }}

- name: Upload binary artifacts
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -125,7 +130,7 @@ jobs:
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release -f ./.goreleaser-darwin.yaml --rm-dist --timeout 60m --snapshot
args: release -f ./.goreleaser-release-darwin.yaml --rm-dist --timeout 60m --skip-publish --skip-announce ${{ github.event.inputs.snapshot && '--snapshot' }}
env:
AC_USERNAME: ${{ secrets.AC_USERNAME }}
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
Expand Down Expand Up @@ -181,9 +186,15 @@ jobs:
# we use the "prebuilt" builder here which is a pro-only feature
distribution: goreleaser-pro
version: latest
args: release -f ./.goreleaser-release.yaml --rm-dist --timeout 60m --snapshot
args: release -f ./.goreleaser-release.yaml --rm-dist --timeout 60m ${{ github.event.inputs.snapshot && '--snapshot' }}
env:
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AC_USERNAME: ${{ secrets.AC_USERNAME }}
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: release
path: ./dist/*
0