Skip to content

Commit

Permalink
trying with gh release
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Oct 13, 2023
1 parent 8fef9a6 commit 45019e1
Showing 1 changed file with 27 additions and 20 deletions.
47 changes: 27 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 45019e1

Please sign in to comment.