diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml index 73155276175..c8f34702dc5 100644 --- a/.github/workflows/release-docker.yml +++ b/.github/workflows/release-docker.yml @@ -34,9 +34,9 @@ jobs: run: pnpm install - name: Build - run: make dist + run: make -f Makefile.release env: - NO_INSTALL: "true" + NO_INSTALL: 'true' - name: Login to Docker Hub uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0 diff --git a/.github/workflows/release-web.yml b/.github/workflows/release-web.yml index dd92c509ddd..55d6a3ee9d1 100644 --- a/.github/workflows/release-web.yml +++ b/.github/workflows/release-web.yml @@ -14,6 +14,8 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + env: + CHANGELOG_PATH: ${{ github.workspace }}/dist/CHANGELOG.md steps: - name: Checkout code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -35,10 +37,16 @@ jobs: run: pnpm install - name: Build release - run: make dist + run: make -f Makefile.release env: NO_INSTALL: 'true' + - name: Generate checksums + run: | + cd ${{ github.workspace }}/release + md5sum * > md5sum.txt + sha256sum * > sha256sum.txt + - name: Get release version id: version run: echo "version=$(echo '${{ github.ref_name }}' | sed 's/^v//' | cut -d- -f1)" >> "$GITHUB_OUTPUT" @@ -47,5 +55,14 @@ jobs: uses: actionhippie/calens@244f3e5c328b842a740113859b87bbebf697f63b # v1.13.1 with: version: ${{ steps.version.outputs.version }} - target: dist/CHANGELOG.md + target: ${{ env.CHANGELOG_PATH }} template: changelog/CHANGELOG-Release.tmpl + + - name: Publish release + uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1 + with: + working_directory: ${{ github.workspace }} + files: | + release/* + name: ${{ steps.version.outputs.version }} + body_path: ${{ env.CHANGELOG_PATH }}