Skip to content

Commit

Permalink
echo versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Amerlander committed Dec 12, 2023
1 parent 8738755 commit 610cd8e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,28 +59,32 @@ jobs:
# Extract semver version
VERSION=$(echo "${{ github.ref_name }}" | sed 's/v//; s/^\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$/\1/')
echo $VERSION
# Update tauri.conf.json with the new version
sed -i "s#\"version\": \".*\"#\"version\": \"$VERSION\"#g" src-tauri/tauri.conf.json
- name: Update Tauri version in tauri.conf.json (macos)
if: matrix.platform == 'macos-latest'
run: |
# Extract semver version
VERSION=$(echo "${{ github.ref_name }}" | sed 's/v//; s/^\([0-9]\+\.[0-9]\+\.[0-9]\+\).*$/\1/')
VERSION=$(echo "${{ github.ref_name }}" | sed -E 's/v([0-9]+\.[0-9]+\.[0-9]+).*$/\1/')
echo $VERSION
# Update tauri.conf.json with the new version
sed -i '' "s#\"version\": \".*\"#\"version\": \"$VERSION\"#g" src-tauri/tauri.conf.json
cat src-tauri/tauri.conf.json
#cat src-tauri/tauri.conf.json
- name: Update Tauri version in tauri.conf.json (windows)
if: matrix.platform == 'windows-latest'
run: |
# Extract semver version
$version = "${{ github.ref_name }}" -replace '^v(\d+\.\d+\.\d+).*$', '$1'
echo $version
# Update tauri.conf.json with the new version
(Get-Content -Path "src-tauri/tauri.conf.json") -replace '"version": ".*"', "`"version`": `"$version`"" | Set-Content -Path "src-tauri/tauri.conf.json"
Expand Down

0 comments on commit 610cd8e

Please sign in to comment.