Skip to content

Commit 10d7796

Browse files
authored
Merge pull request #20 from haskell-actions/release-workflow
Update release workflow.
2 parents a4719bd + fc949f7 commit 10d7796

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,8 @@ concurrency: build
33
permissions: read-all
44

55
on:
6-
7-
workflow_dispatch:
8-
inputs:
9-
reference:
10-
description: Branch, tag, or hash of commit to build.
11-
required: false
12-
default: main
13-
type: string
14-
15-
push:
16-
tags: ['v*'] # Build and publish image on release.
6+
release:
7+
types: [published]
178

189
env:
1910
REGISTRY: ghcr.io
@@ -58,3 +49,11 @@ jobs:
5849
push: true
5950
tags: ${{ steps.meta.outputs.tags }}
6051
labels: ${{ steps.meta.outputs.labels }}
52+
53+
major-version-tagging:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Update version tags
57+
uses: zyactions/update-semver@v1
58+
with:
59+
ignore-prerelease: false

docs/CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ for this purpose.
3535

3636
When updating the version, these files should be updated accordingly:
3737

38-
* [`CHANGELOG.md`](../docs/CHANGELOG.md)
38+
* [`CHANGELOG.md`](CHANGELOG.md)
3939
* [`package.yaml`](../package.yaml)
40+
* [`action.yaml`](../action.yaml)
4041

4142
Once that is done, a new [release] should be done with the new version number.
4243

0 commit comments

Comments
 (0)