Publish release #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish release | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
run: rustup update | |
- name: Build | |
run: cargo build --release | |
- name: Archive artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: neophyte-linux | |
path: target/release/neophyte | |
retention-days: 1 | |
create-release: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
needs: | |
- build-ubuntu | |
steps: | |
- name: Download Linux artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: neophyte-linux | |
- name: Create release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAG: ${{ github.ref_name }} | |
run: | | |
gh release create "$TAG" \ | |
--repo="$GITHUB_REPOSITORY" \ | |
--title="${TAG#v}" \ | |
--notes-from-tag |