-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Patrick José Pereira <[email protected]>
- Loading branch information
1 parent
26ecf38
commit e1b17e0
Showing
1 changed file
with
11 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
- uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
ref: ${{ github.event.repository.default_branch }} | ||
- uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
|
@@ -22,15 +22,19 @@ jobs: | |
- name: Extract version from tag | ||
id: get_version | ||
run: echo "::set-output name=version::${GITHUB_REF/refs\/tags\//}" | ||
- name: Login to crates.io | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: login | ||
args: ${{ secrets.CARGO }} | ||
- name: Commit version changes | ||
run: | | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | ||
- name: Set and publish workspace crates | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO }} | ||
run: | | ||
cargo install cargo-workspaces | ||
cargo workspaces version custom ${{ steps.get_version.outputs.version }} \ | ||
--exact --yes --no-individual-tags \ | ||
--exact --yes --no-individual-tags --no-git-tag --no-git-push\ | ||
-m "Commit new release ${{ steps.get_version.outputs.version }}" | ||
cargo workspaces publish --yes --no-verify | ||
- name: Push commit | ||
run: | | ||
git push origin ${{ github.event.repository.default_branch }} |