Skip to content

Commit

Permalink
Improve release workflow and setup GitHub actions
Browse files Browse the repository at this point in the history
- Add GitHub token environment variable for workflow
- Create `release-drafter` and `make publish` steps in workflow
- Pass version information between steps in workflow via environment variables
  • Loading branch information
johnnyhuy committed Apr 21, 2024
1 parent a70bf0c commit f4995dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ jobs:
release:
runs-on: ubuntu-latest

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

steps:
- uses: release-drafter/release-drafter@v5
id: drafter
with:
version: ${{ github.ref_name }}
publish: true
- run: make publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: make publish-package
- run: make publish-image
VERSION: ${{ steps.drafter.outputs.tag_name }}
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ build:
build-image:
docker compose build

publish: publish-package publish-image

publish-package:
rm -rdf dist
$(MAKE) build
Expand Down

0 comments on commit f4995dd

Please sign in to comment.