Skip to content

Commit 891ee86

Browse files
committed
ci: auto-publish release on tag
1 parent caee5ce commit 891ee86

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,26 @@ jobs:
1111
platform:
1212
- release_for: Linux-x86_64
1313
os: ubuntu-22.04
14+
os_name: ubuntu-22.04
1415
target: x86_64-unknown-linux-gnu
15-
bin: multibrowse-${{ github.ref_name }}-ubuntu-22.04
16-
name: multibrowse-${{ github.ref_name}}-ubuntu-22.04.tar.gz
16+
bin: multibrowse
17+
name: multibrowse-${{ github.ref_name}}-ubuntu-22.04
1718
command: build
1819

1920
- release_for: Windows-x86_64
2021
os: windows-latest
22+
os_name: win11
2123
target: x86_64-pc-windows-msvc
22-
bin: multibrowse-${{ github.ref_name }}-win11.exe
23-
name: multibrowse-${{ github.ref_name}}-win11.zip
24+
bin: multibrowse.exe
25+
name: multibrowse-${{ github.ref_name }}-win11.exe
2426
command: build
2527

2628
- release_for: macOS-x86_64
2729
os: macOS-latest
30+
os_name: macos
2831
target: aarch64-apple-darwin
29-
bin: multibrowse-${{ github.ref_name }}-macos
30-
name: multibrowse-${{ github.ref_name}}-macos.tar.gz
32+
bin: multibrowse
33+
name: multibrowse-${{ github.ref_name}}-macos-arm64
3134
command: build
3235

3336
runs-on: ${{ matrix.platform.os }}
@@ -40,4 +43,17 @@ jobs:
4043
command: ${{ matrix.platform.command }}
4144
target: ${{ matrix.platform.target }}
4245
args: "--locked --release"
43-
strip: true
46+
strip: true
47+
- name: Move binaries
48+
shell: bash
49+
run: mv target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} ${{ matrix.platform.name }}
50+
- name: Upload artifacts
51+
uses: actions/upload-artifact@v3
52+
with:
53+
name: multibrowse-${{ github.ref_name }}-${{ matrix.platform.os_name }}
54+
path: "multibrowse-*"
55+
- name: Publish release
56+
uses: softprops/action-gh-release@v1
57+
with:
58+
draft: true
59+
files: "multibrowse-*"

0 commit comments

Comments
 (0)