Skip to content

Commit

Permalink
gha: use version as number
Browse files Browse the repository at this point in the history
  • Loading branch information
tiero committed Nov 1, 2023
1 parent 425b9d8 commit 813792f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ jobs:
- name: View version
run: |
echo "Version: ${{ github.event.inputs.version }}"
echo "Tag: ${{ github.event.inputs.version }}"
- name: Version as Number
id: next_version
run: |
tag=${{ github.event.inputs.version }}
echo "version=${tag:1}" >> $GITHUB_OUTPUT
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -84,9 +90,9 @@ jobs:
- name: Increment version
run: |
dasel put string -f package.json ".version" "${{ github.event.inputs.version }}"
dasel put string -f src-tauri/tauri.conf.json ".package.version" "${{ github.event.inputs.version }}"
dasel put string -f src-tauri/Cargo.toml ".package.version" "${{ github.event.inputs.version }}"
dasel put string -f package.json ".version" "${{ steps.next_version.outputs.version }}"
dasel put string -f src-tauri/tauri.conf.json ".package.version" "${{ steps.next_version.outputs.version }}"
dasel put string -f src-tauri/Cargo.toml ".package.version" "${{ steps.next_version.outputs.version }}"
- name: Build the app
uses: tauri-apps/tauri-action@dev
Expand Down

0 comments on commit 813792f

Please sign in to comment.