ci: generate assets for a pr [skip ci]
This commit is contained in:
parent
01f2c461ad
commit
40c487fcf9
7 changed files with 57 additions and 26 deletions
8
.github/workflows/insider-linux.yml
vendored
8
.github/workflows/insider-linux.yml
vendored
|
@ -6,9 +6,9 @@ on:
|
||||||
release_version:
|
release_version:
|
||||||
type: string
|
type: string
|
||||||
description: Forced release version
|
description: Forced release version
|
||||||
test_asset_builder:
|
generate_assets:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Test the assets builder
|
description: Generate assets
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [insider]
|
types: [insider]
|
||||||
push:
|
push:
|
||||||
|
@ -52,7 +52,7 @@ jobs:
|
||||||
|
|
||||||
- name: Check PR or cron
|
- name: Check PR or cron
|
||||||
env:
|
env:
|
||||||
TEST_ASSET_BUILDER: ${{ github.event.inputs.test_asset_builder }}
|
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
|
||||||
run: ./check_cron_or_pr.sh
|
run: ./check_cron_or_pr.sh
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -166,7 +166,7 @@ jobs:
|
||||||
|
|
||||||
- name: Prepare assets
|
- name: Prepare assets
|
||||||
run: ./prepare_assets.sh
|
run: ./prepare_assets.sh
|
||||||
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.test_asset_builder == 'true')
|
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
env:
|
env:
|
||||||
|
|
8
.github/workflows/insider-macos.yml
vendored
8
.github/workflows/insider-macos.yml
vendored
|
@ -6,9 +6,9 @@ on:
|
||||||
release_version:
|
release_version:
|
||||||
type: string
|
type: string
|
||||||
description: Forced release version
|
description: Forced release version
|
||||||
test_asset_builder:
|
generate_assets:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Test the assets builder
|
description: Generate assets
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [insider]
|
types: [insider]
|
||||||
push:
|
push:
|
||||||
|
@ -65,7 +65,7 @@ jobs:
|
||||||
|
|
||||||
- name: Check PR or cron
|
- name: Check PR or cron
|
||||||
env:
|
env:
|
||||||
TEST_ASSET_BUILDER: ${{ github.event.inputs.test_asset_builder }}
|
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
|
||||||
run: . check_cron_or_pr.sh
|
run: . check_cron_or_pr.sh
|
||||||
|
|
||||||
- name: Check existing VSCodium tags/releases
|
- name: Check existing VSCodium tags/releases
|
||||||
|
@ -86,7 +86,7 @@ jobs:
|
||||||
CERTIFICATE_OSX_PASSWORD: ${{ secrets.CERTIFICATE_OSX_PASSWORD }}
|
CERTIFICATE_OSX_PASSWORD: ${{ secrets.CERTIFICATE_OSX_PASSWORD }}
|
||||||
CERTIFICATE_OSX_ID: ${{ secrets.CERTIFICATE_OSX_ID }}
|
CERTIFICATE_OSX_ID: ${{ secrets.CERTIFICATE_OSX_ID }}
|
||||||
run: ./prepare_assets.sh
|
run: ./prepare_assets.sh
|
||||||
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.test_asset_builder == 'true')
|
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
env:
|
env:
|
||||||
|
|
8
.github/workflows/insider-windows.yml
vendored
8
.github/workflows/insider-windows.yml
vendored
|
@ -6,9 +6,9 @@ on:
|
||||||
release_version:
|
release_version:
|
||||||
type: string
|
type: string
|
||||||
description: Forced release version
|
description: Forced release version
|
||||||
test_asset_builder:
|
generate_assets:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Test the assets builder
|
description: Generate assets
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [insider]
|
types: [insider]
|
||||||
push:
|
push:
|
||||||
|
@ -72,7 +72,7 @@ jobs:
|
||||||
|
|
||||||
- name: Check PR or cron
|
- name: Check PR or cron
|
||||||
env:
|
env:
|
||||||
TEST_ASSET_BUILDER: ${{ github.event.inputs.test_asset_builder }}
|
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
|
||||||
run: ./check_cron_or_pr.sh
|
run: ./check_cron_or_pr.sh
|
||||||
|
|
||||||
- name: Check existing VSCodium tags/releases
|
- name: Check existing VSCodium tags/releases
|
||||||
|
@ -91,7 +91,7 @@ jobs:
|
||||||
|
|
||||||
- name: Prepare assets
|
- name: Prepare assets
|
||||||
run: ./prepare_assets.sh
|
run: ./prepare_assets.sh
|
||||||
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.test_asset_builder == 'true')
|
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
env:
|
env:
|
||||||
|
|
39
.github/workflows/stable-linux.yml
vendored
39
.github/workflows/stable-linux.yml
vendored
|
@ -6,9 +6,12 @@ on:
|
||||||
force_version:
|
force_version:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Force update version
|
description: Force update version
|
||||||
test_asset_builder:
|
generate_assets:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Test the assets builder
|
description: Generate assets
|
||||||
|
checkout_pr:
|
||||||
|
type: string
|
||||||
|
description: Checkout PR
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [stable]
|
types: [stable]
|
||||||
push:
|
push:
|
||||||
|
@ -44,12 +47,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: ${{ env.GITHUB_BRANCH }}
|
ref: ${{ env.GITHUB_BRANCH }}
|
||||||
|
|
||||||
|
- name: Checkout PR
|
||||||
|
uses: dawidd6/action-checkout-pr@v1
|
||||||
|
with:
|
||||||
|
pr: ${{ github.event.inputs.checkout_pr }}
|
||||||
|
if: github.event.inputs.checkout_pr != ''
|
||||||
|
|
||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
run: ./get_repo.sh
|
run: ./get_repo.sh
|
||||||
|
|
||||||
- name: Check PR or cron
|
- name: Check PR or cron
|
||||||
env:
|
env:
|
||||||
TEST_ASSET_BUILDER: ${{ github.event.inputs.test_asset_builder }}
|
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
|
||||||
run: ./check_cron_or_pr.sh
|
run: ./check_cron_or_pr.sh
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -77,6 +86,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: ${{ env.GITHUB_BRANCH }}
|
ref: ${{ env.GITHUB_BRANCH }}
|
||||||
|
|
||||||
|
- name: Checkout PR
|
||||||
|
uses: dawidd6/action-checkout-pr@v1
|
||||||
|
with:
|
||||||
|
pr: ${{ github.event.inputs.checkout_pr }}
|
||||||
|
if: github.event.inputs.checkout_pr != ''
|
||||||
|
|
||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
run: ./get_repo.sh
|
run: ./get_repo.sh
|
||||||
|
|
||||||
|
@ -133,6 +148,14 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ env.GITHUB_BRANCH }}
|
||||||
|
|
||||||
|
- name: Checkout PR
|
||||||
|
uses: dawidd6/action-checkout-pr@v1
|
||||||
|
with:
|
||||||
|
pr: ${{ github.event.inputs.checkout_pr }}
|
||||||
|
if: github.event.inputs.checkout_pr != ''
|
||||||
|
|
||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
run: ./get_repo.sh
|
run: ./get_repo.sh
|
||||||
|
@ -161,7 +184,15 @@ jobs:
|
||||||
|
|
||||||
- name: Prepare assets
|
- name: Prepare assets
|
||||||
run: ./prepare_assets.sh
|
run: ./prepare_assets.sh
|
||||||
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.test_asset_builder == 'true')
|
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')
|
||||||
|
|
||||||
|
- name: Upload assets
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: assets
|
||||||
|
path: ./assets/
|
||||||
|
retention-days: 3
|
||||||
|
if: github.event.inputs.generate_assets == 'true'
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
env:
|
env:
|
||||||
|
|
8
.github/workflows/stable-macos.yml
vendored
8
.github/workflows/stable-macos.yml
vendored
|
@ -6,9 +6,9 @@ on:
|
||||||
force_version:
|
force_version:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Force update version
|
description: Force update version
|
||||||
test_asset_builder:
|
generate_assets:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Test the assets builder
|
description: Generate assets
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [stable]
|
types: [stable]
|
||||||
push:
|
push:
|
||||||
|
@ -60,7 +60,7 @@ jobs:
|
||||||
|
|
||||||
- name: Check PR or cron
|
- name: Check PR or cron
|
||||||
env:
|
env:
|
||||||
TEST_ASSET_BUILDER: ${{ github.event.inputs.test_asset_builder }}
|
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
|
||||||
run: . check_cron_or_pr.sh
|
run: . check_cron_or_pr.sh
|
||||||
|
|
||||||
- name: Check existing VSCodium tags/releases
|
- name: Check existing VSCodium tags/releases
|
||||||
|
@ -81,7 +81,7 @@ jobs:
|
||||||
CERTIFICATE_OSX_PASSWORD: ${{ secrets.CERTIFICATE_OSX_PASSWORD }}
|
CERTIFICATE_OSX_PASSWORD: ${{ secrets.CERTIFICATE_OSX_PASSWORD }}
|
||||||
CERTIFICATE_OSX_ID: ${{ secrets.CERTIFICATE_OSX_ID }}
|
CERTIFICATE_OSX_ID: ${{ secrets.CERTIFICATE_OSX_ID }}
|
||||||
run: ./prepare_assets.sh
|
run: ./prepare_assets.sh
|
||||||
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.test_asset_builder == 'true')
|
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
env:
|
env:
|
||||||
|
|
8
.github/workflows/stable-windows.yml
vendored
8
.github/workflows/stable-windows.yml
vendored
|
@ -6,9 +6,9 @@ on:
|
||||||
force_version:
|
force_version:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Force update version
|
description: Force update version
|
||||||
test_asset_builder:
|
generate_assets:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Test the assets builder
|
description: Generate assets
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [stable]
|
types: [stable]
|
||||||
push:
|
push:
|
||||||
|
@ -68,7 +68,7 @@ jobs:
|
||||||
|
|
||||||
- name: Check PR or cron
|
- name: Check PR or cron
|
||||||
env:
|
env:
|
||||||
TEST_ASSET_BUILDER: ${{ github.event.inputs.test_asset_builder }}
|
GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
|
||||||
run: ./check_cron_or_pr.sh
|
run: ./check_cron_or_pr.sh
|
||||||
|
|
||||||
- name: Check existing VSCodium tags/releases
|
- name: Check existing VSCodium tags/releases
|
||||||
|
@ -88,7 +88,7 @@ jobs:
|
||||||
|
|
||||||
- name: Prepare assets
|
- name: Prepare assets
|
||||||
run: ./prepare_assets.sh
|
run: ./prepare_assets.sh
|
||||||
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.test_asset_builder == 'true')
|
if: env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -14,8 +14,8 @@ elif [[ "${GITHUB_EVENT_NAME}" == "push" ]]; then
|
||||||
export SHOULD_BUILD="yes"
|
export SHOULD_BUILD="yes"
|
||||||
export SHOULD_DEPLOY="no"
|
export SHOULD_DEPLOY="no"
|
||||||
elif [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
|
elif [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
|
||||||
if [[ "${TEST_ASSET_BUILDER}" == "true" ]]; then
|
if [[ "${GENERATE_ASSETS}" == "true" ]]; then
|
||||||
echo "It's testing the assets builder"
|
echo "It will generate the assets"
|
||||||
|
|
||||||
export SHOULD_BUILD="yes"
|
export SHOULD_BUILD="yes"
|
||||||
export SHOULD_DEPLOY="no"
|
export SHOULD_DEPLOY="no"
|
||||||
|
|
Loading…
Reference in a new issue