From 891ee86ead90e432bbfb2732fc6b3ac1d602feb1 Mon Sep 17 00:00:00 2001 From: Ivo Janssen Date: Sat, 2 Dec 2023 15:49:43 -0800 Subject: [PATCH] ci: auto-publish release on tag --- .github/workflows/release.yml | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 296232f..14b8469 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,23 +11,26 @@ jobs: platform: - release_for: Linux-x86_64 os: ubuntu-22.04 + os_name: ubuntu-22.04 target: x86_64-unknown-linux-gnu - bin: multibrowse-${{ github.ref_name }}-ubuntu-22.04 - name: multibrowse-${{ github.ref_name}}-ubuntu-22.04.tar.gz + bin: multibrowse + name: multibrowse-${{ github.ref_name}}-ubuntu-22.04 command: build - release_for: Windows-x86_64 os: windows-latest + os_name: win11 target: x86_64-pc-windows-msvc - bin: multibrowse-${{ github.ref_name }}-win11.exe - name: multibrowse-${{ github.ref_name}}-win11.zip + bin: multibrowse.exe + name: multibrowse-${{ github.ref_name }}-win11.exe command: build - release_for: macOS-x86_64 os: macOS-latest + os_name: macos target: aarch64-apple-darwin - bin: multibrowse-${{ github.ref_name }}-macos - name: multibrowse-${{ github.ref_name}}-macos.tar.gz + bin: multibrowse + name: multibrowse-${{ github.ref_name}}-macos-arm64 command: build runs-on: ${{ matrix.platform.os }} @@ -40,4 +43,17 @@ jobs: command: ${{ matrix.platform.command }} target: ${{ matrix.platform.target }} args: "--locked --release" - strip: true \ No newline at end of file + strip: true + - name: Move binaries + shell: bash + run: mv target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} ${{ matrix.platform.name }} + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: multibrowse-${{ github.ref_name }}-${{ matrix.platform.os_name }} + path: "multibrowse-*" + - name: Publish release + uses: softprops/action-gh-release@v1 + with: + draft: true + files: "multibrowse-*"