From 7abc7d898086352c344ae6bf0f55ed34345252cb 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 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 296232f..7945c4f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,7 @@ 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 @@ -18,6 +19,7 @@ jobs: - 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 @@ -25,6 +27,7 @@ jobs: - 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 @@ -40,4 +43,14 @@ jobs: command: ${{ matrix.platform.command }} target: ${{ matrix.platform.target }} args: "--locked --release" - strip: true \ No newline at end of file + strip: true + - 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-*"