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

77 lines
2.1 KiB
YAML
Raw Permalink Normal View History

2023-11-15 16:33:27 +00:00
name: stable-spearhead
2023-11-15 16:31:04 +00:00
on:
workflow_dispatch:
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
2023-11-15 16:31:04 +00:00
schedule:
- cron: '0 18 * * *'
jobs:
build:
2024-02-08 18:15:07 +00:00
runs-on: macos-14
2023-11-15 16:31:04 +00:00
env:
APP_NAME: VSCodium
ASSETS_REPOSITORY: ${{ github.repository }}
VERSIONS_REPOSITORY: ${{ github.repository_owner }}/versions
OS_NAME: osx
VSCODE_ARCH: arm64
VSCODE_LATEST: ${{ github.event.inputs.dont_update == 'true' && 'no' || 'yes' }}
2023-11-15 16:31:04 +00:00
VSCODE_QUALITY: stable
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
2024-06-01 17:23:10 +00:00
node-version: '20.12'
2023-11-15 16:31:04 +00:00
- name: Clone VSCode repo
run: . get_repo.sh
- name: Check existing VSCodium tags/releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NEW_RELEASE: ${{ github.event.inputs.new_release }}
IS_SPEARHEAD: 'yes'
2023-11-15 16:31:04 +00:00
run: . check_tags.sh
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./build.sh
if: env.SHOULD_BUILD == 'yes'
- name: Update <quality>.json
run: ./update_qualityjson.sh
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'
2023-11-15 16:31:04 +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: 'stable'
if: env.SHOULD_BUILD == 'yes' || github.event.inputs.force_dispatch == 'true'