Skip to content

Commit 79a42da

Browse files
committed
Optimize GitHub actions and versioning configurations
- Modify release workflow to include new environment variable and change publish settings - Update Makefile to enhance version variable assignment
1 parent 5b08fa3 commit 79a42da

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ jobs:
1616
outputs:
1717
tag_name: ${{ steps.drafter.outputs.tag_name }}
1818

19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
1922
steps:
2023
- uses: release-drafter/release-drafter@v5
2124
id: drafter
2225
with:
23-
version: ${{ github.ref_name }}
24-
publish: true
26+
publish: false
2527

2628
publish:
2729
runs-on: ubuntu-latest
@@ -36,4 +38,7 @@ jobs:
3638
- uses: asdf-vm/actions/install@v3
3739
- run: make publish
3840
env:
39-
VERSION: ${{ needs.release.outputs.tag_name }}
41+
VERSION: ${{ needs.release.outputs.tag_name }}
42+
- uses: release-drafter/release-drafter@v5
43+
with:
44+
publish: true

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VENV := . venv/bin/activate &&
22
TAG := $(shell git describe --tags --abbrev=0)
3-
VERSION ?= $(shell git describe --tags)
3+
VERSION ?= $(shell git describe --tags --always)
44

55
-include .env
66
export

0 commit comments

Comments
 (0)