diff --git a/.github/workflows/autotag.yml b/.github/workflows/autotag.yml deleted file mode 100644 index 79afa0c..0000000 --- a/.github/workflows/autotag.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Autotag - -on: - push: - branches: main - -jobs: - tag: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Tag new version - uses: phish108/autotag-action@v1.1.64 - with: - github-token: ${{ secrets.GITHUB_TOKEN}} - bump: minor - with-v: true - release-branch: main diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index be1f2b0..bf9f426 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -2,8 +2,7 @@ name: Releases on: push: - tags: - - '*' + branches: main jobs: release: @@ -26,7 +25,17 @@ jobs: - name: Build ZIP archive run: npm run build + - name: Tag new version + id: tagger + uses: phish108/autotag-action@v1.1.64 + with: + github-token: ${{ secrets.GITHUB_TOKEN}} + bump: minor + with-v: true + release-branch: main + - name: Create release on Github uses: ncipollo/release-action@v1 with: + tag: ${{ steps.tagger.outputs.new-tag }} artifacts: build/logtail-aws-lambda.zip