Skip to content

Commit f4067b2

Browse files
committed
cleanup
1 parent bc39f1b commit f4067b2

File tree

3 files changed

+45
-53
lines changed

3 files changed

+45
-53
lines changed

.github/workflows/prerelease.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/upgraderelease.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: UpgradeRelease
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "release/version to update"
8+
required: true
9+
10+
jobs:
11+
12+
update:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: checkout
16+
uses: actions/checkout@v3
17+
with:
18+
ref: release_${{ github.event.inputs.version }}
19+
fetch-depth: 0
20+
- run: |
21+
git fetch --force --tags
22+
- name: Setup go
23+
uses: actions/setup-go@v3
24+
with:
25+
go-version: 1.19
26+
- name: goreleaser
27+
uses: goreleaser/goreleaser-action@v4
28+
with:
29+
args: release --clean --release-notes release.md -f .goreleaser.update.yaml
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
packages:
34+
uses: ./.github/workflows/packages.yml
35+
with:
36+
version: ${{ github.event.inputs.version }}
37+
38+
pull-request:
39+
uses: ./.github/workflows/pull-request.yml
40+
with:
41+
version: ${{ github.event.inputs.version }}

.goreleaser.update.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
builds:
2+
- skip: true
3+
release:
4+
prerelease: false

0 commit comments

Comments
 (0)