From c5bf84c8482321613fb85ea95734148650e34b60 Mon Sep 17 00:00:00 2001 From: youable <115457023+youabledev@users.noreply.github.com> Date: Sat, 14 Dec 2024 13:38:03 +0900 Subject: [PATCH] init: github action to auto tag and release --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..072bddb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: release with tag + +on: + push: + branches: + - main +jobs: + release: + name: Release + runs-on: ubuntu-latest + permissions: + packages: write + contents: write + id-token: write + + steps: + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v6.2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Create a GitHub release + uses: ncipollo/release-action@v1 + with: + tag: ${{ steps.tag_version.outputs.new_tag }} + name: ${{ steps.tag_version.outputs.new_tag }} + body: ${{ steps.tag_version.outputs.changelog }}