Skip to content

Commit

Permalink
Test out new actions-rust-release action
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Sep 3, 2024
1 parent ca7b610 commit 476a129
Showing 1 changed file with 5 additions and 41 deletions.
46 changes: 5 additions & 41 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,45 +178,9 @@ jobs:
args:
"--locked --release --features ${{ steps.set-features-flag-value.outputs.features }}"
if: ${{ !matrix.platform.skip_tests }}
- name: Package as archive
shell: bash
run: |
cd target/${{ matrix.platform.target }}/release
if [[ "${{ matrix.platform.os }}" == "windows-latest" ]]; then
7z a ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }}
else
tar czvf ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }}
fi
cd -
if: |
matrix.name != '' &&
matrix.toolchain == 'stable' &&
( startsWith( github.ref, 'refs/tags/v' ) ||
github.ref == 'refs/tags/test-release' )
- name: Publish release artifacts
uses: actions/upload-artifact@v3
- name: Publish artifacts and release
uses: houseabsolute/actions-rust-release@v0
with:
name: ubi-${{ matrix.platform.os_name }}
path: "ubi-*"
if: |
matrix.name != '' &&
matrix.toolchain == 'stable' &&
github.ref == 'refs/tags/test-release'
- name: Generate SHA-256
run: shasum -a 256 ${{ matrix.platform.name }}
if: |
matrix.name != '' &&
matrix.toolchain == 'stable' &&
matrix.platform.os == 'macOS-latest' &&
( startsWith( github.ref, 'refs/tags/v' ) ||
github.ref == 'refs/tags/test-release' )
- name: Publish GitHub release
uses: softprops/action-gh-release@v2
with:
draft: true
files: "ubi*"
body_path: Changes.md
if: |
matrix.name != '' &&
matrix.toolchain == 'stable' &&
startsWith( github.ref, 'refs/tags/v' )
binary-name: ubi
target: ${{ matrix.platform.target }}
if: matrix.toolchain == 'stable'

0 comments on commit 476a129

Please sign in to comment.