diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e7118a4..dbb6be5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 \ No newline at end of file + VERSION: ${{ steps.drafter.outputs.tag_name }} \ No newline at end of file diff --git a/Makefile b/Makefile index 1b9571e..cf19383 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,8 @@ build: build-image: docker compose build +publish: publish-package publish-image + publish-package: rm -rdf dist $(MAKE) build