diff --git a/.github/workflows/app-release.yml b/.github/workflows/app-release.yml index 6f2be22..d782389 100644 --- a/.github/workflows/app-release.yml +++ b/.github/workflows/app-release.yml @@ -42,12 +42,16 @@ jobs: with: targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} + - name: refresh apt index (ubuntu only) + if: matrix.platform == 'ubuntu-22.04' + run: sudo apt-get update + - name: install dependencies (ubuntu only) if: matrix.platform == 'ubuntu-22.04' uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # latest with: packages: libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf - version: 1.0 + version: 1.2 - name: install frontend dependencies uses: bahmutov/npm-install@v1 diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index efd9860..d1ba2f3 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -26,8 +26,10 @@ jobs: uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 - name: Create tag + env: + HEAD_REF: ${{ github.event.pull_request.head.ref }} run: | - VERSION=${{ github.event.pull_request.head.ref }} + VERSION=$HEAD_REF VERSION=${VERSION#chore/release-version-} echo "Creating tag for version $VERSION" git tag "$VERSION" diff --git a/.github/workflows/release-trigger.yml b/.github/workflows/release-trigger.yml index 916b120..c2f63d3 100644 --- a/.github/workflows/release-trigger.yml +++ b/.github/workflows/release-trigger.yml @@ -22,9 +22,11 @@ jobs: - name: Update version id: update_version + env: + INPUT_VERSION: ${{ github.event.inputs.version }} run: | JSON_FILE="app/src-tauri/tauri.conf.json" - RAW_TAG=${{ github.event.inputs.version }} + RAW_TAG=$INPUT_VERSION NEW_VERSION="${RAW_TAG#v}" echo "Bumping version to $NEW_VERSION" jq ".version = \"$NEW_VERSION\"" "$JSON_FILE" > $JSON_FILE.temp && mv $JSON_FILE.temp "$JSON_FILE"