vscodium/.github/workflows/insider-spearhead.yml

79 lines
2.1 KiB
YAML
Raw Normal View History

2022-08-29 13:13:25 +00:00
name: insider-spearhead
on:
workflow_dispatch:
2023-11-15 16:31:04 +00:00
inputs:
new_release:
type: boolean
description: Force new Release
force_dispatch:
type: boolean
description: Force dispatch
2024-02-08 18:13:09 +00:00
dont_update:
type: boolean
description: Don't update VSCode
2022-08-29 13:13:25 +00:00
schedule:
- cron: '0 7 * * *'
2022-08-29 13:13:25 +00:00
jobs:
build:
2024-02-08 18:15:07 +00:00
runs-on: macos-14
2022-08-29 13:13:25 +00:00
env:
2022-10-06 20:15:41 +00:00
APP_NAME: VSCodium
ASSETS_REPOSITORY: ${{ github.repository }}-insiders
VERSIONS_REPOSITORY: ${{ github.repository_owner }}/versions
OS_NAME: osx
VSCODE_ARCH: arm64
2024-02-08 18:18:47 +00:00
VSCODE_LATEST: ${{ github.event.inputs.dont_update != 'true' }}
2022-10-06 20:15:41 +00:00
VSCODE_QUALITY: insider
2022-08-29 13:13:25 +00:00
steps:
- uses: actions/checkout@v4
with:
ref: insider
2022-08-29 13:13:25 +00:00
- name: Setup Node.js environment
2023-10-31 11:39:06 +00:00
uses: actions/setup-node@v4
2022-08-29 13:13:25 +00:00
with:
node-version: '18'
2022-08-29 13:13:25 +00:00
- name: Clone VSCode repo
run: . get_repo.sh
- name: Check existing VSCodium tags/releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2023-11-15 16:31:04 +00:00
NEW_RELEASE: ${{ github.event.inputs.new_release }}
IS_SPEARHEAD: 'yes'
2022-08-29 13:13:25 +00:00
run: . check_tags.sh
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./build.sh
if: env.SHOULD_BUILD == 'yes'
2023-11-15 16:31:04 +00:00
- name: Update <quality>.json
run: ./update_qualityjson.sh
2022-08-29 13:13:25 +00:00
env:
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.repository_owner }}
2024-02-08 18:13:09 +00:00
if: env.SHOULD_BUILD == 'yes' && github.event.inputs.dont_update != 'true'
2022-08-29 13:13:25 +00:00
- name: Prepare source
2023-11-15 16:31:04 +00:00
run: ./prepare_src.sh
if: env.SHOULD_BUILD == 'yes'
- name: Release source
2023-11-15 16:31:04 +00:00
env:
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.repository_owner }}
run: ./release.sh
if: env.SHOULD_BUILD == 'yes'
- name: Dispatch builds
uses: peter-evans/repository-dispatch@v3
2023-11-15 16:31:04 +00:00
with:
event-type: 'insider'
if: env.SHOULD_BUILD == 'yes' || github.event.inputs.force_dispatch == 'true'