Skip to content

Commit

Permalink
Optimize GitHub actions and versioning configurations
Browse files Browse the repository at this point in the history
- Modify release workflow to include new environment variable and change publish settings
- Update Makefile to enhance version variable assignment
  • Loading branch information
johnnyhuy committed Apr 21, 2024
1 parent 5b08fa3 commit 79a42da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ jobs:
outputs:
tag_name: ${{ steps.drafter.outputs.tag_name }}

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: release-drafter/release-drafter@v5
id: drafter
with:
version: ${{ github.ref_name }}
publish: true
publish: false

publish:
runs-on: ubuntu-latest
Expand All @@ -36,4 +38,7 @@ jobs:
- uses: asdf-vm/actions/install@v3
- run: make publish
env:
VERSION: ${{ needs.release.outputs.tag_name }}
VERSION: ${{ needs.release.outputs.tag_name }}
- uses: release-drafter/release-drafter@v5
with:
publish: true
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VENV := . venv/bin/activate &&
TAG := $(shell git describe --tags --abbrev=0)
VERSION ?= $(shell git describe --tags)
VERSION ?= $(shell git describe --tags --always)

-include .env
export
Expand Down

0 comments on commit 79a42da

Please sign in to comment.