mirror of
https://github.com/maxkratz/vscodium.git
synced 2025-03-28 02:22:58 +00:00
ci: streamline insider dispatch [skip ci]
This commit is contained in:
parent
4de18fae52
commit
b0c823fc07
4 changed files with 15 additions and 36 deletions
2
.github/workflows/insider-linux.yml
vendored
2
.github/workflows/insider-linux.yml
vendored
|
@ -9,6 +9,8 @@ on:
|
|||
test_asset_builder:
|
||||
type: boolean
|
||||
description: Test the assets builder
|
||||
repository_dispatch:
|
||||
types: [insider]
|
||||
push:
|
||||
branches: [ insider ]
|
||||
paths-ignore:
|
||||
|
|
2
.github/workflows/insider-macos.yml
vendored
2
.github/workflows/insider-macos.yml
vendored
|
@ -9,6 +9,8 @@ on:
|
|||
test_asset_builder:
|
||||
type: boolean
|
||||
description: Test the assets builder
|
||||
repository_dispatch:
|
||||
types: [insider]
|
||||
push:
|
||||
branches: [ insider ]
|
||||
paths-ignore:
|
||||
|
|
45
.github/workflows/insider-spearhead.yml
vendored
45
.github/workflows/insider-spearhead.yml
vendored
|
@ -6,6 +6,9 @@ on:
|
|||
new_release:
|
||||
type: boolean
|
||||
description: Force new Release
|
||||
force_dispatch:
|
||||
type: boolean
|
||||
description: Force dispatch
|
||||
schedule:
|
||||
- cron: '0 7 * * *'
|
||||
|
||||
|
@ -38,26 +41,9 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NEW_RELEASE: ${{ github.event.inputs.new_release }}
|
||||
IS_SPEARHEAD: 'yes'
|
||||
run: . check_tags.sh
|
||||
|
||||
- name: Compute cache key
|
||||
id: yarnCacheKey
|
||||
run: echo "value=$(node build/azure-pipelines/computeYarnCacheKey.js)" >> $GITHUB_OUTPUT
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Get yarn cache directory path
|
||||
id: yarnCacheDirPath
|
||||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Cache yarn directory
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.yarnCacheDirPath.outputs.dir }}
|
||||
key: ${{ env.OS_NAME }}-${{ env.VSCODE_ARCH }}-yarnCacheDir-${{ steps.yarnCacheKey.outputs.value }}
|
||||
restore-keys: ${{ env.OS_NAME }}-${{ env.VSCODE_ARCH }}-yarnCacheDir-
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@ -71,32 +57,19 @@ jobs:
|
|||
GITHUB_USERNAME: ${{ github.repository_owner }}
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Prepare assets
|
||||
- name: Prepare source
|
||||
run: ./prepare_src.sh
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Release
|
||||
- name: Release source
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||
GITHUB_USERNAME: ${{ github.repository_owner }}
|
||||
run: ./release.sh
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Dispatch Linux build
|
||||
- name: Dispatch builds
|
||||
uses: peter-evans/repository-dispatch@v2
|
||||
with:
|
||||
event-type: 'insider-linux'
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Dispatch Windows build
|
||||
uses: peter-evans/repository-dispatch@v2
|
||||
with:
|
||||
event-type: 'insider-windows'
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Dispatch macOS build
|
||||
uses: peter-evans/repository-dispatch@v2
|
||||
with:
|
||||
event-type: 'insider-macos'
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
event-type: 'insider'
|
||||
if: env.SHOULD_BUILD == 'yes' || github.event.inputs.force_dispatch == 'true'
|
||||
|
|
2
.github/workflows/insider-windows.yml
vendored
2
.github/workflows/insider-windows.yml
vendored
|
@ -9,6 +9,8 @@ on:
|
|||
test_asset_builder:
|
||||
type: boolean
|
||||
description: Test the assets builder
|
||||
repository_dispatch:
|
||||
types: [insider]
|
||||
push:
|
||||
branches: [ insider ]
|
||||
paths-ignore:
|
||||
|
|
Loading…
Add table
Reference in a new issue