Skip to content

Publish Numbrs release #17

Publish Numbrs release

Publish Numbrs release #17

Workflow file for this run

name: Publish Numbrs release
on:
release:
types:
- published
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
publish-binaries:
name: Upload Numbrs binaries to GitHub release
if: ${{ github.event_name == 'release' }}
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Check out sources
uses: actions/checkout@v3
- name: Download binary artifacts
uses: actions/download-artifact@v3
- name: Publish binaries
run: |
find .
gh release upload ${{ github.ref_name }} $(find . -type f '(' -name 'numbrs-*-*.zip' -or -name 'numbrs-*-*.tar.gz' ')' )
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# publish-to-crates-io:
# name: Publish release to crates.io
# runs-on: ubuntu-latest
# steps:
# - name: Check out sources
# uses: actions/checkout@v3
# - name: Set up Rust toolchain
# uses: dtolnay/rust-toolchain@stable
# - name: Publish to crates.io
# run: cargo publish
# env:
# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}