2 Commits

Author SHA1 Message Date
ac7b67748d 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
Reviewed-on: nvrl/cenv-rs#3
2026-03-16 15:56:25 +01:00
8cee54007f fixed release upload 2026-03-16 15:56:18 +01:00

View File

@@ -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