From bae08ff5f2e06ed2ecab88bf98dd86682dd525c2 Mon Sep 17 00:00:00 2001 From: meesters Date: Tue, 30 Apr 2024 13:40:07 +0200 Subject: [PATCH] feat: replaced autorelease with releae-please - works well with workflows --- .github/workflows/autorelease.yml | 24 ------------------------ .github/workflows/release-please.yml | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/autorelease.yml create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/autorelease.yml b/.github/workflows/autorelease.yml deleted file mode 100644 index 0e8b111..0000000 --- a/.github/workflows/autorelease.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: AutoRelease - -on: - push: - branches: [ master ] - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - release: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - - uses: actions/checkout@v2 - - uses: CupOfTea696/gh-action-auto-release@v1.0.0 - with: - title: "Release: $version" - tag: "v$semver" - draft: false - regex: "/^Release: #{semver}$/i" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..048e0ca --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,16 @@ +on: + push: + branches: + - main + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v4 + id: release + with: + release-type: go + package-name: \ No newline at end of file