Skip to content

Commit

Permalink
ci: auto-publish release on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
foxxyz committed Dec 2, 2023
1 parent caee5ce commit fedf886
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,23 @@ 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
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
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
Expand All @@ -40,4 +43,17 @@ jobs:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true
strip: true
- name: Move binaries
shell: bash
run: mv target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} ../../..
- 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-*"

0 comments on commit fedf886

Please sign in to comment.