From 45019e1cc0c10557a475c315c4d8608a843d059a Mon Sep 17 00:00:00 2001 From: grog Date: Fri, 13 Oct 2023 16:29:49 -0700 Subject: [PATCH] trying with gh release --- .github/workflows/build.yml | 47 +++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 20 deletions(-) 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