Skip to content

Commit

Permalink
revert: "ci(release): rm tag input && add if ref type is tag"
Browse files Browse the repository at this point in the history
Signed-off-by: Dwi Siswanto <[email protected]>
  • Loading branch information
dwisiswant0 committed Mar 22, 2024
1 parent 3df22b4 commit 982d754
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,25 @@ on:
push:
tags: ["v*.*.**"]
workflow_dispatch:
inputs:
tag:
description: "Target tag to release/publish"
required: true
type: string

env:
PGO_FILE: "default.pgo"

jobs:
is-tag:
runs-on: ubuntu-latest
steps:
- name: Is ref tag?
if: >
(
github.ref_type != 'tag' &&
github.event_name == 'workflow_dispatch'
)
run: exit 1

release:
name: goreleaser-cross
runs-on: ubuntu-latest
needs: is-tag
container:
image: ghcr.io/goreleaser/goreleaser-cross:latest
steps:
- uses: actions/checkout@master
with:
ref: "${{ inputs.tag || github.ref_name }}"

- uses: actions/setup-go@v5
with:
Expand Down

0 comments on commit 982d754

Please sign in to comment.