Skip to content

Publish release

Publish release #3

Workflow file for this run

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