Skip to content

chore: release 1.0.0-preview1 #73

chore: release 1.0.0-preview1

chore: release 1.0.0-preview1 #73

Workflow file for this run

name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-*"
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build and upload release artifacts
uses: ./.github/workflows/build.yml
publish:
name: Publish release
runs-on: ubuntu-latest
needs: build
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- env:
GH_TOKEN: ${{ github.token }}
run:
IS_PRE_RELEASE=$(echo ${{ github.ref_name }} | grep -E 'v[0-9]+\.[0-9]+\.[0-9]+-.+')
gh release create ${{ github.ref_name }} ./artifacts/* "${IS_PRE_RELEASE:+--prerelease}"