This repository has been archived by the owner on May 7, 2024. It is now read-only.
feat: Add support for unnamed packages (#40) (#41) #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Please | |
on: | |
push: | |
branches: | |
- main | |
tags: "*" | |
repository_dispatch: | |
env: | |
RUST_BACKTRACE: 1 | |
jobs: | |
release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
concurrency: release-please | |
steps: | |
- name: Install release-please | |
run: npm install --global [email protected] | |
- name: Update the Release PR | |
run: | | |
release-please release-pr \ | |
--debug \ | |
--token=${{ secrets.RELEASE_PLEASE_GH_TOKEN }} \ | |
--repo-url=${{ github.repositoryUrl }} \ | |
--config-file=.github/release-please/config.json \ | |
--manifest-file=.github/release-please/manifest.json | |
- name: Publish the GitHub Release | |
run: | | |
release-please github-release \ | |
--debug \ | |
--token=${{ secrets.RELEASE_PLEASE_GH_TOKEN }} \ | |
--repo-url=${{ github.repositoryUrl }} \ | |
--config-file=.github/release-please/config.json \ | |
--manifest-file=.github/release-please/manifest.json | |
publish-to-crates-io: | |
name: Publish to crates.io (if necessary) | |
runs-on: ubuntu-latest | |
needs: | |
- release | |
concurrency: release-please-publish-crates-io | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Rust | |
uses: dsherret/rust-toolchain-file@v1 | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install cargo-workspaces | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-workspaces | |
- name: Publish | |
run: cargo workspaces publish --from-git --token "${{ secrets.CRATES_IO_TOKEN }}" --yes |