Merge pull request 'fixed release upload' (#3) from release/0.1.0 into main
All checks were successful
Release / Build and Release (push) Successful in 39s
All checks were successful
Release / Build and Release (push) Successful in 39s
Reviewed-on: nvrl/cenv-rs#3
This commit was merged in pull request #3.
This commit is contained in:
@@ -53,31 +53,22 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
if: steps.check_release.outputs.EXISTS == 'false'
|
if: steps.check_release.outputs.EXISTS == 'false'
|
||||||
run: cargo build --release
|
run: |
|
||||||
|
cargo build --release
|
||||||
|
mv target/release/cenv target/release/cenv-${{ steps.get_version.outputs.TAG }}-linux-amd64
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release and Upload Asset
|
||||||
if: steps.check_release.outputs.EXISTS == 'false'
|
if: steps.check_release.outputs.EXISTS == 'false'
|
||||||
id: create_release
|
uses: https://github.com/softprops/action-gh-release@v1
|
||||||
uses: https://github.com/actions/create-release@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.get_version.outputs.TAG }}
|
tag_name: ${{ steps.get_version.outputs.TAG }}
|
||||||
release_name: Release ${{ steps.get_version.outputs.TAG }}
|
name: Release ${{ steps.get_version.outputs.TAG }}
|
||||||
body: |
|
body: |
|
||||||
Automated release for version ${{ steps.get_version.outputs.VERSION }}
|
Automated release for version ${{ steps.get_version.outputs.VERSION }}
|
||||||
Commit: ${{ github.sha }}
|
Commit: ${{ github.sha }}
|
||||||
Branch: ${{ github.ref_name }}
|
Branch: ${{ github.ref_name }}
|
||||||
|
files: target/release/cenv-${{ steps.get_version.outputs.TAG }}-linux-amd64
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
- name: Upload Release Asset
|
|
||||||
if: steps.check_release.outputs.EXISTS == 'false'
|
|
||||||
uses: https://github.com/actions/upload-release-asset@v1
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./target/release/cenv
|
|
||||||
asset_name: cenv-${{ steps.get_version.outputs.TAG }}-linux-amd64
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
|
|||||||
Reference in New Issue
Block a user