ci: update GitHub Actions runtime actions
This commit is contained in:
@@ -22,7 +22,7 @@ jobs:
|
|||||||
runs-on: ${{ inputs.macos_version }}
|
runs-on: ${{ inputs.macos_version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref || github.ref }}
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: "20"
|
node-version: "20"
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload DMG artifact
|
- name: Upload DMG artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: dmg-electron-${{ inputs.macos_version }}-arm64
|
name: dmg-electron-${{ inputs.macos_version }}-arm64
|
||||||
path: artifacts/*.dmg
|
path: artifacts/*.dmg
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
archive_name: ${{ steps.archive.outputs.archive_name }}
|
archive_name: ${{ steps.archive.outputs.archive_name }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
echo "archive_name=${ARCHIVE_NAME}" >> "$GITHUB_OUTPUT"
|
echo "archive_name=${ARCHIVE_NAME}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Upload workflow artifact
|
- name: Upload workflow artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: docs-source
|
name: docs-source
|
||||||
path: artifacts/${{ steps.archive.outputs.archive_name }}
|
path: artifacts/${{ steps.archive.outputs.archive_name }}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
issues: write
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
|||||||
@@ -10,13 +10,13 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ jobs:
|
|||||||
platform: darwin-x86_64
|
platform: darwin-x86_64
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout selected ref
|
- name: Checkout selected ref
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: ${{ inputs.repository || github.repository }}
|
repository: ${{ inputs.repository || github.repository }}
|
||||||
ref: ${{ inputs.ref || github.ref }}
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
@@ -63,7 +63,7 @@ jobs:
|
|||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ jobs:
|
|||||||
done
|
done
|
||||||
|
|
||||||
- name: Upload macOS installable artifacts
|
- name: Upload macOS installable artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: desktop-release-smoke-macos-${{ matrix.arch }}
|
name: desktop-release-smoke-macos-${{ matrix.arch }}
|
||||||
path: |
|
path: |
|
||||||
@@ -175,7 +175,7 @@ jobs:
|
|||||||
platform: win32-x64
|
platform: win32-x64
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout selected ref
|
- name: Checkout selected ref
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
repository: ${{ inputs.repository || github.repository }}
|
repository: ${{ inputs.repository || github.repository }}
|
||||||
ref: ${{ inputs.ref || github.ref }}
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
@@ -184,7 +184,7 @@ jobs:
|
|||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
|
||||||
@@ -213,7 +213,7 @@ jobs:
|
|||||||
run: node ./scripts/package.mjs --win --${{ matrix.arch }} --publish=never
|
run: node ./scripts/package.mjs --win --${{ matrix.arch }} --publish=never
|
||||||
|
|
||||||
- name: Upload Windows installable artifacts
|
- name: Upload Windows installable artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: desktop-release-smoke-windows-${{ matrix.arch }}
|
name: desktop-release-smoke-windows-${{ matrix.arch }}
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
release_upload_url: ${{ steps.create_release.outputs.upload_url }}
|
release_upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
version: ${{ steps.get_version.outputs.version }}
|
version: ${{ steps.get_version.outputs.version }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Get version
|
- name: Get version
|
||||||
id: get_version
|
id: get_version
|
||||||
@@ -82,13 +82,13 @@ jobs:
|
|||||||
needs: create-release
|
needs: create-release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
@@ -133,13 +133,13 @@ jobs:
|
|||||||
arch: x64
|
arch: x64
|
||||||
platform: darwin-x86_64
|
platform: darwin-x86_64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
|
||||||
@@ -262,14 +262,14 @@ jobs:
|
|||||||
tar -C electron-app-artifact -czf electron-app-${{ matrix.arch }}.tar.gz OpenChamber.app
|
tar -C electron-app-artifact -czf electron-app-${{ matrix.arch }}.tar.gz OpenChamber.app
|
||||||
|
|
||||||
- name: Upload signed Electron app for Tauri updater repackage
|
- name: Upload signed Electron app for Tauri updater repackage
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: electron-app-${{ matrix.arch }}
|
name: electron-app-${{ matrix.arch }}
|
||||||
path: electron-app-${{ matrix.arch }}.tar.gz
|
path: electron-app-${{ matrix.arch }}.tar.gz
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
- name: Upload per-arch latest-mac.yml for merge
|
- name: Upload per-arch latest-mac.yml for merge
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: latest-yml-${{ matrix.target }}
|
name: latest-yml-${{ matrix.target }}
|
||||||
path: packages/electron/dist/latest-mac.yml
|
path: packages/electron/dist/latest-mac.yml
|
||||||
@@ -286,13 +286,13 @@ jobs:
|
|||||||
target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
platform: win32-x64
|
platform: win32-x64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
|
||||||
@@ -331,7 +331,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Upload update manifest as artifact
|
- name: Upload update manifest as artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: latest-yml-${{ matrix.target }}
|
name: latest-yml-${{ matrix.target }}
|
||||||
path: packages/electron/dist/latest.yml
|
path: packages/electron/dist/latest.yml
|
||||||
@@ -349,7 +349,7 @@ jobs:
|
|||||||
- arch: x64
|
- arch: x64
|
||||||
platform: darwin-x86_64
|
platform: darwin-x86_64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
@@ -430,7 +430,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Upload per-platform Tauri manifest for merge
|
- name: Upload per-platform Tauri manifest for merge
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: tauri-manifest-${{ matrix.platform }}
|
name: tauri-manifest-${{ matrix.platform }}
|
||||||
path: staged/latest-${{ matrix.platform }}.json
|
path: staged/latest-${{ matrix.platform }}.json
|
||||||
@@ -514,10 +514,10 @@ jobs:
|
|||||||
needs: [create-release, build-desktop-electron-macos, build-desktop-electron-windows]
|
needs: [create-release, build-desktop-electron-macos, build-desktop-electron-windows]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ jobs:
|
|||||||
issues: write
|
issues: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
|
|||||||
@@ -17,13 +17,13 @@ jobs:
|
|||||||
OVSX_PAT: ${{ secrets.OVSX_PAT }}
|
OVSX_PAT: ${{ secrets.OVSX_PAT }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@ jobs:
|
|||||||
run: bunx ovsx publish packages/vscode/*.vsix -p "$OVSX_PAT"
|
run: bunx ovsx publish packages/vscode/*.vsix -p "$OVSX_PAT"
|
||||||
|
|
||||||
- name: Upload VSIX artifact
|
- name: Upload VSIX artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: openchamber-vscode-vsix
|
name: openchamber-vscode-vsix
|
||||||
path: packages/vscode/*.vsix
|
path: packages/vscode/*.vsix
|
||||||
|
|||||||
Reference in New Issue
Block a user