mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-22 05:58:21 -05:00
ci: added step to change Cargo.toml app version to the latest tag version without the v
This commit is contained in:
parent
a597525470
commit
fab6c40763
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@ -27,6 +27,15 @@ jobs:
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
release_branches: rolling
|
||||
- name: get-app-version
|
||||
id: package-version
|
||||
run: |
|
||||
LF_VERSION=$(cat package.json | jq -r '.version')
|
||||
echo "current-version=$LF_VERSION" >> "$GITHUB_OUTPUT"
|
||||
- name: update cargo.toml
|
||||
run: |
|
||||
appversion=$(${{ steps.version-bump.outputs.new_tag }} | sed 's/[v]//')
|
||||
sed -i -e "s/^version = .*/version = \"$appversion\"/" Cargo.toml
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user