diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ff3daf..0e9599e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,11 +2,8 @@ name: CI/CD on: push: - branches: [ main ] - pull_request: - branches: [ main ] - release: - types: [ created ] + tags: + - '*' env: CARGO_TERM_COLOR: always @@ -171,7 +168,7 @@ jobs: release: name: Release needs: build-desktop - if: github.event_name == 'release' + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest permissions: contents: write @@ -186,7 +183,7 @@ jobs: uses: softprops/action-gh-release@v3 with: files: artifacts/**/* - draft: true + tag_name: ${{ github.ref_name }} generate_release_notes: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}