diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81dddce..3ff5efe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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'