From 04a295b6629f421d875b13989a08dc359609f567 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Sun, 4 Sep 2022 13:21:18 +0200 Subject: [PATCH] better release action --- .github/workflows/build.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9386991..9dd2450 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,12 +36,8 @@ jobs: - uses: actions-ecosystem/action-get-latest-tag@v1 id: get-latest-tag - - name: update latest Release - if: "!(startsWith(github.ref, 'refs/tags/v'))" - uses: ncipollo/release-action@v1.10.0 + - uses: "marvinpinto/action-automatic-releases@latest" with: - allowUpdates: true - artifacts: dist/* - tag: ${{ steps.get-latest-tag.outputs.tag }} - prerelease: true - removeArtifacts: true + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: ${{ steps.get-latest-tag.outputs.tag }} + files: dist/*