Skip to content

Release v3.3.1

Release v3.3.1 #29

Workflow file for this run

name: Publish to crates.io
on:
push:
tags: ["v*"]
jobs:
publish-crates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
- name: Publish crate
uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Install markdown-extract
shell: bash
run: cargo install markdown-extract
- name: Generate changelog
shell: bash
run: markdown-extract --no-print-matched-heading "${{ github.ref_name }}" CHANGELOG.md > release-text.md
- name: Make GitHub release
uses: softprops/action-gh-release@v1
with:
draft: true
body_path: ${{ github.workspace }}/release-text.md
upload-artifacts:
needs: publish-crates
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: cynic
token: ${{ secrets.GITHUB_TOKEN }}
publish-release:
needs: [upload-artifacts]
permissions:
contents: write
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: mark release as non-draft
run: |
gh release edit ${{ github.ref_name }} --draft=false