diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-03-26 07:42:25 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-03-26 08:31:05 +0800 |
commit | 8e8e0119441518062cc7612b360eca1beaf7143c (patch) | |
tree | a6874eec46e4fdf0bd57e5945bc9129852a26d5c /.github | |
parent | 085ae37d70bbd4328e046a47bc41c13e669eb562 (diff) |
github releases!
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release.yml | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51e9b7a..3dba2ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest env: # Set to force version number, e.g., when no tag exists. - ARTIFACT_VERSION: TEST-0.0.0 + ARTIFACT_VERSION: TEST-0.0.7 steps: - name: Create artifacts directory run: mkdir artifacts @@ -165,7 +165,7 @@ jobs: - name: Strip release binary (linux and macos) if: matrix.build == 'linux' || matrix.build == 'macos' - run: strip "target/${{ matrix.target }}/release/rg" + run: strip "target/${{ matrix.target }}/release/dua" - name: Strip release binary (arm) if: matrix.build == 'linux-arm' @@ -174,20 +174,19 @@ jobs: "$PWD/target:/target:Z" \ rustembedded/cross:arm-unknown-linux-gnueabihf \ arm-linux-gnueabihf-strip \ - /target/arm-unknown-linux-gnueabihf/release/rg + /target/arm-unknown-linux-gnueabihf/release/dua - name: Build archive shell: bash run: | - outdir="$(ci/cargo-out-dir "${{ env.TARGET_DIR }}")" staging="dua-${{ env.RELEASE_VERSION }}-${{ matrix.target }}" mkdir -p "$staging"/{complete,doc} cp {README.md,LICENSE} "$staging/" - cp {CHANGELOG.md} "$staging/doc/" + cp CHANGELOG.md "$staging/doc/" if [ "${{ matrix.os }}" = "windows-2019" ]; then - cp "target/${{ matrix.target }}/release/rg.exe" "$staging/" + cp "target/${{ matrix.target }}/release/dua.exe" "$staging/" 7z a "$staging.zip" "$staging" echo "::set-env name=ASSET::$staging.zip" else |