Skip to content

publish

publish #15

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
env:
CARGO_TERM_COLOR: always
jobs:
build:
env:
FILE_NAME: flora_parsing
runs-on: ${{ matrix.os }}
permissions: write-all
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest,macOS-latest,windows-latest]
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
- name: release
run: cargo build --release
- name: 'Tar files'
run: tar -cvf ${{ matrix.os }}-${{ env.FILE_NAME }}.tar ./target/release
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ env.FILE_NAME }}
path: ${{ matrix.os }}-${{ env.FILE_NAME }}.tar
release:
needs: build
runs-on: ubuntu-latest
permissions: write-all
strategy:
fail-fast: false
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
- uses: ncipollo/release-action@v1
with:
artifacts: './ubuntu-latest-flora_parsing/ubuntu-latest-flora_parsing.tar,./macOS-latest-flora_parsing.macOS-latest-flora_parsing.tar,./windows-latest-flora_parsing/windows-latest-flora_parsing.tar'