name: Release
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Windows Build Artifact
uses: dawidd6/action-download-artifact@v11
with:
name: Windows Build
workflow: rust.yml
branch: main
path: ./artifacts/windows
- name: Download Linux Build Artifact
uses: dawidd6/action-download-artifact@v11
with:
name: Linux Build
workflow: rust.yml
branch: main
path: ./artifacts/linux
- name: Download Windows x64 Build Artifact
uses: dawidd6/action-download-artifact@v11
with:
name: Windows Build x64
workflow: rust.yml
branch: main
path: ./artifacts/windows-x64
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: ${{ github.ref_name }}
draft: true
generate_release_notes: true
files: |
./artifacts/windows/i686-pc-windows-msvc/release/rustick.dll
./artifacts/windows/i686-pc-windows-msvc/release/rustick.pdb
./artifacts/windows-x64/x86_64-pc-windows-msvc/release/rustick64.dll
./artifacts/windows-x64/x86_64-pc-windows-msvc/release/rustick64.pdb
./artifacts/linux/i686-unknown-linux-gnu/release/librustick.so
./artifacts/linux/i686-unknown-linux-gnu/release/librustick.so.dbg
./artifacts/windows/rustick.dm