diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aea99dc342..755cef3039 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,25 +41,32 @@ jobs: scheme: semver increment: patch - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} default expires - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: - tag_name: ${{ steps.version.outputs.version }} - release_name: Release ${{ steps.version.outputs.version }} - draft: false - prerelease: false + token: ${{ secrets.ACCESS_TOKEN }} + files: ./target/myrobotlab.zip + + # - name: Create Release + # id: create_release + # uses: actions/create-release@v1 + # env: + # # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} default expires + # GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + # with: + # tag_name: ${{ steps.version.outputs.version }} + # release_name: Release ${{ steps.version.outputs.version }} + # draft: false + # prerelease: false - - name: Upload Release Artifacts - uses: actions/upload-release-asset@v1 - env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} default expires - GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./target/myrobotlab.zip - asset_name: myrobotlab.zip - asset_content_type: application/zip + # - name: Upload Release Artifacts + # uses: actions/upload-release-asset@v1 + # env: + # # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} default expires + # GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} + # with: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: ./target/myrobotlab.zip + # asset_name: myrobotlab.zip + # asset_content_type: application/zip