Skip to content

Commit

Permalink
[CI] Change release workflow to create new tag on run (#83)
Browse files Browse the repository at this point in the history
* ci: add target commit property to goreleaser config

* ci: update 'on' property
  • Loading branch information
kevinanielsen authored Jan 2, 2024
1 parent c031982 commit 2f33581
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: release

on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
inputs:
tag:
description: 'New tag name'
required: true

jobs:
goreleaser:
Expand All @@ -19,6 +18,7 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git tag ${{ github.event.inputs.tag }}

- name: Setup pnpm
uses: pnpm/action-setup@v2
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ builds:
goarch: arm

release:
target_commitish: '{{ .Commit }}'
draft: true
github:
owner: kevinanielsen
Expand Down

0 comments on commit 2f33581

Please sign in to comment.