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

76 lines
2 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
2022-08-29 13:13:25 +00:00
schedule:
- cron: '0 7 * * *'
2022-08-29 13:13:25 +00:00
jobs:
build:
runs-on: [self-hosted, macOS, ARM64]
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
VSCODE_LATEST: yes
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 }}
if: env.SHOULD_BUILD == 'yes'
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
2023-11-15 16:31:04 +00:00
uses: peter-evans/repository-dispatch@v2
with:
event-type: 'insider'
if: env.SHOULD_BUILD == 'yes' || github.event.inputs.force_dispatch == 'true'