Skip to content

Commit

Permalink
Add workflow_dispatch release action
Browse files Browse the repository at this point in the history
Change release action to use `workflow_dispatch`.
  • Loading branch information
HeavyWombat committed Aug 17, 2022
1 parent 03c4120 commit 9ab65e9
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
name: Release
name: Build Release
on:
push:
tags:
- "v*"

jobs:
goreleaser:
name: Release
name: Build Release
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/release-create.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Create Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true
type: string

jobs:
release:
name: Create Release
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-go@v3
with:
go-version: 1.18.x

- name: Create release
uses: actions/create-release@v1
with:
release_name: "retry release ${{ github.event.inputs.version }}"
tag_name: ${{ github.event.inputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}

0 comments on commit 9ab65e9

Please sign in to comment.