diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dab8799..233fd9d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -191,7 +191,7 @@ jobs: release: name: Release - if: ${{ github.repository_owner == 'mathieucarbou' && github.event_name != 'pull_request' && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') ) }} + if: ${{ github.repository_owner == 'mathieucarbou' && github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') }} runs-on: ubuntu-latest needs: [platformio, sender] permissions: @@ -210,39 +210,10 @@ jobs: ls -R artifacts find artifacts -name '*.bin' -exec mv {} artifacts/ \; - - name: Pre-Release - if: ${{ github.ref == 'refs/heads/main' }} - uses: mathieucarbou/marvinpinto-action-automatic-releases@latest - with: - repo_token: "${{ secrets.ACCESS_TOKEN }}" - automatic_release_tag: latest - prerelease: true - title: Pre-release Builds - files: | - artifacts/*.bin - tools/factory.py - - - name: Changelog - if: ${{ startsWith(github.ref, 'refs/tags/v') }} - id: github_release - uses: mikepenz/release-changelog-builder-action@v5 - with: - failOnError: true - commitMode: true - configuration: ".github/workflows/release-notes-config.json" - env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - - name: Release - if: ${{ startsWith(github.ref, 'refs/tags/v') }} uses: softprops/action-gh-release@v2 with: - body: ${{steps.github_release.outputs.changelog}} - append_body: true - draft: false files: | artifacts/*.bin tools/factory.py - env: - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} \ No newline at end of file