Skip to content

Commit

Permalink
Bump version in tauri.conf.json and Cargo.toml in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
negar-abbasi committed Jul 22, 2024
1 parent 76d4862 commit 884243b
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
20 changes: 18 additions & 2 deletions .github/actions/build-windows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inputs:
production-release:
description: 'Production release?'
required: true
release_version:
release-version:
description: 'The release version'
package_name:
description: 'The name of the package'
Expand All @@ -22,6 +22,22 @@ inputs:
runs:
using: 'composite'
steps:

- name: Get artifact name
id: set-env
run: |
echo "artifact_name=algokit-lora-windows-${{ runner.arch }}" >> $GITHUB_OUTPUT
shell: bash

- name: Bump version in tauri.conf.json and Cargo.toml
if: ${{ inputs.release-version != '' }}
run: |
version="${{ inputs.release-version }}"
version="${version/beta./}"
sed -i "s/\"version\": \"0.0.0\"/\"version\": \"$version\"/g" "src-tauri/tauri.conf.json"
sed -i "s/version = \"0.0.0\"/version = \"$version\"/g" "src-tauri/Cargo.toml"
shell: bash

# This step is just seting up the trusted signing action and it is expected to fail.
# It is needed later on sign the executable step.
- name: Initialize sign executable
Expand Down Expand Up @@ -68,6 +84,6 @@ runs:
- name: Upload msi artifact
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.package_name }}-${{ inputs.release_version }}-msi
name: ${{ inputs.package_name }}-${{ inputs.release-version }}-msi
path: ${{ github.workspace }}\src-tauri\target\release\bundle\msi\algokit-lora*.msi
if-no-files-found: error
2 changes: 1 addition & 1 deletion .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
if: ${{ runner.os == 'Windows' }}
uses: ./.github/actions/build-windows
with:
release_version: 0.0.1
release-version: 0.0.1
package_name: algokit-lora
azure_tenant_id: ${{ secrets.AZURE_TENANT_ID }}
azure_client_id: ${{ secrets.AZURE_CLIENT_ID }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
uses: ./.github/actions/build-windows
with:
production-release: ${{ inputs.production-release }}
release_version: ${{ needs.create-release.outputs.release-version }}
release-version: ${{ needs.create-release.outputs.release-version }}
package_name: algokit-lora
azure_tenant_id: ${{ secrets.AZURE_TENANT_ID }}
azure_client_id: ${{ secrets.AZURE_CLIENT_ID }}
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "algokit-lora",
"version": "0.0.1"
"version": "0.0.0"
},
"tauri": {
"allowlist": {
Expand Down

0 comments on commit 884243b

Please sign in to comment.