From 7b7f2c56382a746e4193d52c958114f98047defe Mon Sep 17 00:00:00 2001 From: Benjamin Dornel Date: Sun, 9 Jun 2024 17:06:04 +0800 Subject: [PATCH] feat(ci): add release process --- .github/workflows/release.yaml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..c1b0eddb --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,35 @@ +name: release + +on: + push: + # workflow_dispatch: + +jobs: + release: + name: Release + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + # - name: Release to PyPI + # env: + # POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }} + # run: poetry publish --build + + - name: Run JReleaser + uses: jreleaser/release-action@v2 + env: + JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: JReleaser release output + if: always() + uses: actions/upload-artifact@v4 + with: + name: jreleaser-release + path: | + out/jreleaser/trace.log + out/jreleaser/output.properties