mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 21:33:02 +01:00
Let us test binary builds without publishing new tags
This commit is contained in:
19
.github/workflows/binaries-publish.yaml
vendored
19
.github/workflows/binaries-publish.yaml
vendored
@@ -1,6 +1,7 @@
|
|||||||
name: Publish Release Binaries
|
name: Publish Release Binaries
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
tags: [ 'v*.*.*' ]
|
tags: [ 'v*.*.*' ]
|
||||||
|
|
||||||
@@ -8,6 +9,10 @@ jobs:
|
|||||||
goreleaser:
|
goreleaser:
|
||||||
name: goreleaser
|
name: goreleaser
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
packages: write
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -37,6 +42,7 @@ jobs:
|
|||||||
go install github.com/sigstore/cosign/cmd/cosign@latest
|
go install github.com/sigstore/cosign/cmd/cosign@latest
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: goreleaser/goreleaser-action@v5
|
uses: goreleaser/goreleaser-action@v5
|
||||||
with:
|
with:
|
||||||
workdir: "backend"
|
workdir: "backend"
|
||||||
@@ -47,3 +53,16 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
COSIGN_PWD: ${{ secrets.COSIGN_PWD }}
|
COSIGN_PWD: ${{ secrets.COSIGN_PWD }}
|
||||||
COSIGN_YES: "true"
|
COSIGN_YES: "true"
|
||||||
|
|
||||||
|
- name: Run GoReleaser (No Publish)
|
||||||
|
if: !startsWith(github.ref, 'refs/tags/')
|
||||||
|
uses: goreleaser/goreleaser-action@v5
|
||||||
|
with:
|
||||||
|
workdir: "backend"
|
||||||
|
distribution: goreleaser
|
||||||
|
version: "~> v2"
|
||||||
|
args: release --clean --skip=publish,validate
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
COSIGN_PWD: ${{ secrets.COSIGN_PWD }}
|
||||||
|
COSIGN_YES: "true"
|
||||||
Reference in New Issue
Block a user