[dev] GH Actions: Bump version (#6830)
This commit is contained in:
parent
ee3faa9df8
commit
29b82893ba
33
.github/workflows/package-and-publish.yml
vendored
33
.github/workflows/package-and-publish.yml
vendored
@ -37,7 +37,7 @@ jobs:
|
|||||||
should-publish: ${{ steps.extract-version.outputs.should-publish }}
|
should-publish: ${{ steps.extract-version.outputs.should-publish }}
|
||||||
release-name: ${{ steps.extract-version.outputs.release-name }}
|
release-name: ${{ steps.extract-version.outputs.release-name }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Extract version and tag
|
- name: Extract version and tag
|
||||||
id: extract-version
|
id: extract-version
|
||||||
@ -138,7 +138,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.settings.platform }}
|
runs-on: ${{ matrix.settings.platform }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set Xcode version
|
- name: Set Xcode version
|
||||||
if: matrix.settings.platform == 'macos-latest'
|
if: matrix.settings.platform == 'macos-latest'
|
||||||
@ -147,7 +147,7 @@ jobs:
|
|||||||
xcode-version: latest-stable
|
xcode-version: latest-stable
|
||||||
|
|
||||||
- name: Setup Node.js ${{ vars.NODE_VERSION }}
|
- name: Setup Node.js ${{ vars.NODE_VERSION }}
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: ${{ vars.NODE_VERSION }}
|
node-version: ${{ vars.NODE_VERSION }}
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Cache node modules
|
- name: Cache node modules
|
||||||
id: npm-cache
|
id: npm-cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: node_modules
|
path: node_modules
|
||||||
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json') }}
|
||||||
@ -184,11 +184,7 @@ jobs:
|
|||||||
echo "repo=${PUBLISH_REPO#*/}" >> $GITHUB_OUTPUT
|
echo "repo=${PUBLISH_REPO#*/}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# Windows code signing setup
|
# Windows code signing setup
|
||||||
- name: Install DigiCert Client tools (Windows)
|
- name: Setup certificate and environment variables (Windows)
|
||||||
if: matrix.settings.platform == 'windows-latest'
|
|
||||||
uses: digicert/ssm-code-signing@v1.1.1
|
|
||||||
|
|
||||||
- name: Setup certificate and set environment variables (Windows)
|
|
||||||
if: matrix.settings.platform == 'windows-latest'
|
if: matrix.settings.platform == 'windows-latest'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@ -198,13 +194,16 @@ jobs:
|
|||||||
echo "SM_CLIENT_CERT_FILE=D:\\Certificate_pkcs12.p12" >> "$GITHUB_ENV"
|
echo "SM_CLIENT_CERT_FILE=D:\\Certificate_pkcs12.p12" >> "$GITHUB_ENV"
|
||||||
echo "SM_CLIENT_CERT_PASSWORD=${{ secrets.SM_CLIENT_CERT_PASSWORD }}" >> "$GITHUB_ENV"
|
echo "SM_CLIENT_CERT_PASSWORD=${{ secrets.SM_CLIENT_CERT_PASSWORD }}" >> "$GITHUB_ENV"
|
||||||
echo "KEYPAIR_ALIAS=${{ secrets.KEYPAIR_ALIAS }}" >> "$GITHUB_ENV"
|
echo "KEYPAIR_ALIAS=${{ secrets.KEYPAIR_ALIAS }}" >> "$GITHUB_ENV"
|
||||||
echo "C:\Program Files (x86)\Windows Kits\10\App Certification Kit" >> $GITHUB_PATH
|
|
||||||
echo "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools" >> $GITHUB_PATH
|
- name: Install DigiCert Client tools (Windows)
|
||||||
echo "C:\Program Files\DigiCert\DigiCert One Signing Manager Tools" >> $GITHUB_PATH
|
if: matrix.settings.platform == 'windows-latest'
|
||||||
|
uses: digicert/code-signing-software-trust-action@v1.2.0
|
||||||
|
with:
|
||||||
|
simple-signing-mode: true
|
||||||
|
|
||||||
- name: Define Tauri configuration overrides
|
- name: Define Tauri configuration overrides
|
||||||
id: config-overrides
|
id: config-overrides
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
env:
|
env:
|
||||||
BASE_URL: ${{ vars.BASE_URL }}
|
BASE_URL: ${{ vars.BASE_URL }}
|
||||||
UPDATER_PUBLIC_KEY: ${{ secrets.UPDATER_PUBLIC_KEY }}
|
UPDATER_PUBLIC_KEY: ${{ secrets.UPDATER_PUBLIC_KEY }}
|
||||||
@ -280,7 +279,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload artifact (MacOS)
|
- name: Upload artifact (MacOS)
|
||||||
if: matrix.settings.platform == 'macos-latest'
|
if: matrix.settings.platform == 'macos-latest'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.file-info.outputs.name }}-${{ steps.file-info.outputs.architecture }}.dmg
|
name: ${{ steps.file-info.outputs.name }}-${{ steps.file-info.outputs.architecture }}.dmg
|
||||||
path: ${{ steps.file-info.outputs.path }}/${{ steps.file-info.outputs.name }}.dmg
|
path: ${{ steps.file-info.outputs.path }}/${{ steps.file-info.outputs.name }}.dmg
|
||||||
@ -288,7 +287,7 @@ jobs:
|
|||||||
# Windows release
|
# Windows release
|
||||||
- name: Upload Windows artifact (Windows)
|
- name: Upload Windows artifact (Windows)
|
||||||
if: matrix.settings.platform == 'windows-latest'
|
if: matrix.settings.platform == 'windows-latest'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.file-info.outputs.filename }}
|
name: ${{ steps.file-info.outputs.filename }}
|
||||||
path: ${{ steps.file-info.outputs.path }}/${{ steps.file-info.outputs.filename }}
|
path: ${{ steps.file-info.outputs.path }}/${{ steps.file-info.outputs.filename }}
|
||||||
@ -296,7 +295,7 @@ jobs:
|
|||||||
# Linux release
|
# Linux release
|
||||||
- name: Upload Linux artifact (Linux)
|
- name: Upload Linux artifact (Linux)
|
||||||
if: matrix.settings.platform == 'ubuntu-22.04'
|
if: matrix.settings.platform == 'ubuntu-22.04'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.file-info.outputs.filename }}
|
name: ${{ steps.file-info.outputs.filename }}
|
||||||
path: ${{ steps.file-info.outputs.path }}/${{ steps.file-info.outputs.filename }}
|
path: ${{ steps.file-info.outputs.path }}/${{ steps.file-info.outputs.filename }}
|
||||||
@ -308,7 +307,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RELEASE_ID: ${{ needs.create-release.outputs.releaseId }}
|
RELEASE_ID: ${{ needs.create-release.outputs.releaseId }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Publish release
|
- name: Publish release
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -24,7 +24,8 @@ export default function prepareTauriConfig() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.KEYPAIR_ALIAS) {
|
if (process.env.KEYPAIR_ALIAS) {
|
||||||
config.bundle.windows.signCommand = `smctl.exe sign --keypair-alias=${process.env.KEYPAIR_ALIAS} --input %1`;
|
// eslint-disable-next-line @stylistic/max-len
|
||||||
|
config.bundle.windows.signCommand = `smctl.exe sign --keypair-alias=${process.env.KEYPAIR_ALIAS} --simple --input %1`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user