-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update release workflow to publish a new version of the docs
- Loading branch information
1 parent
fdf0953
commit ad9bfdf
Showing
5 changed files
with
49 additions
and
25 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
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 |
---|---|---|
|
@@ -49,21 +49,31 @@ jobs: | |
run: | | ||
git config user.name release-bot | ||
git config user.email [email protected] | ||
cargo workspaces version ${{ inputs.releaseType }} -y --no-individual-tags -m "Bump rust crates' version" | ||
cargo workspaces version ${{ inputs.releaseType }} -y --no-individual-tags --no-git-push -m "Bump rust crates' version" | ||
- name: Bump docs version | ||
id: bump-docs-version | ||
if: inputs.releaseType != 'patch' | ||
working-directory: ./docs | ||
run: | | ||
LATEST_TAG=$(git describe --tags --abbrev=0) | ||
LATEST_VERSION=$LATEST_TAG:0:1 | ||
npm run docusaurus docs:version $LATEST_VERSION | ||
git add --all | ||
git commit -m "Bump docs version" | ||
git push | ||
- name: Create draft release | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
mkdir -p release_output && rm -rf ./release_output/* | ||
# skip building release tar. TODO Yuval fix | ||
# ./scripts/release/build_all.sh ./release_output | ||
LATEST_TAG=$(git describe --tags --abbrev=0) | ||
gh release create $LATEST_TAG --generate-notes -d --verify-tag -t "Release $LATEST_TAG" | ||
- name: Upload release tars | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
mkdir -p release_output && rm -rf ./release_output/* | ||
LATEST_TAG=$(git describe --tags --abbrev=0) | ||
./scripts/release/build_all.sh ./release_output $LATEST_TAG | ||
for file in ./release_output/*.tar.gz; do | ||
gh release upload $LATEST_TAG "$file" | ||
done |
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
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
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