mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-23 08:52:43 +03:00
PR should build but not deploy
This commit is contained in:
parent
f8eeb2b698
commit
3e50a25606
13
.github/workflows/linux.yml
vendored
13
.github/workflows/linux.yml
vendored
@ -42,6 +42,10 @@ jobs:
|
|||||||
- name: Install Yarn
|
- name: Install Yarn
|
||||||
run: npm install -g yarn
|
run: npm install -g yarn
|
||||||
|
|
||||||
|
- name: Check PR or cron
|
||||||
|
run: |
|
||||||
|
. check_cron_or_pr.sh
|
||||||
|
|
||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
run: ./get_repo.sh
|
run: ./get_repo.sh
|
||||||
|
|
||||||
@ -49,6 +53,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: ./check_tags.sh
|
run: ./check_tags.sh
|
||||||
|
if: env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
@ -61,15 +66,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd VSCode-linux-${VSCODE_ARCH}
|
cd VSCode-linux-${VSCODE_ARCH}
|
||||||
tar czf ../VSCodium-linux-${VSCODE_ARCH}-${LATEST_MS_TAG}.tar.gz .
|
tar czf ../VSCodium-linux-${VSCODE_ARCH}-${LATEST_MS_TAG}.tar.gz .
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Generate shasums
|
- name: Generate shasums
|
||||||
run: ./sum.sh
|
run: ./sum.sh
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.LATEST_MS_TAG }}
|
tag_name: ${{ env.LATEST_MS_TAG }}
|
||||||
files: |
|
files: |
|
||||||
@ -84,7 +89,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update versions repo
|
- name: Update versions repo
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
run: ./update_version.sh
|
run: ./update_version.sh
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||||
|
17
.github/workflows/macos.yml
vendored
17
.github/workflows/macos.yml
vendored
@ -21,6 +21,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 12.14.1
|
node-version: 12.14.1
|
||||||
|
|
||||||
|
- name: Check PR or cron
|
||||||
|
run: |
|
||||||
|
. check_cron_or_pr.sh
|
||||||
|
|
||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
run: |
|
run: |
|
||||||
. get_repo.sh
|
. get_repo.sh
|
||||||
@ -30,6 +34,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
. check_tags.sh
|
. check_tags.sh
|
||||||
|
if: env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
@ -42,7 +47,7 @@ jobs:
|
|||||||
CERTIFICATE_OSX_P12: ${{ secrets.CERTIFICATE_OSX_P12 }}
|
CERTIFICATE_OSX_P12: ${{ secrets.CERTIFICATE_OSX_P12 }}
|
||||||
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 }}
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
run: |
|
run: |
|
||||||
if [ -d "VSCode-darwin-${VSCODE_ARCH}" ]; then # just in case the build failed
|
if [ -d "VSCode-darwin-${VSCODE_ARCH}" ]; then # just in case the build failed
|
||||||
cd "VSCode-darwin-${VSCODE_ARCH}"
|
cd "VSCode-darwin-${VSCODE_ARCH}"
|
||||||
@ -61,7 +66,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd "VSCode-darwin-${VSCODE_ARCH}"
|
cd "VSCode-darwin-${VSCODE_ARCH}"
|
||||||
zip -r -X -y ../VSCodium-darwin-${VSCODE_ARCH}-${LATEST_MS_TAG}.zip ./*.app
|
zip -r -X -y ../VSCodium-darwin-${VSCODE_ARCH}-${LATEST_MS_TAG}.zip ./*.app
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: DMG the release
|
- name: DMG the release
|
||||||
run: |
|
run: |
|
||||||
@ -69,15 +74,15 @@ jobs:
|
|||||||
npx create-dmg VSCodium.app ..
|
npx create-dmg VSCodium.app ..
|
||||||
mv "../VSCodium ${LATEST_MS_TAG}.dmg" "../VSCodium.${VSCODE_ARCH}.${LATEST_MS_TAG}.dmg"
|
mv "../VSCodium ${LATEST_MS_TAG}.dmg" "../VSCodium.${VSCODE_ARCH}.${LATEST_MS_TAG}.dmg"
|
||||||
popd
|
popd
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Generate shasums
|
- name: Generate shasums
|
||||||
run: ./sum.sh
|
run: ./sum.sh
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.LATEST_MS_TAG }}
|
tag_name: ${{ env.LATEST_MS_TAG }}
|
||||||
files: |
|
files: |
|
||||||
@ -88,7 +93,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update versions repo
|
- name: Update versions repo
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
run: ./update_version.sh
|
run: ./update_version.sh
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||||
|
13
.github/workflows/windows.yml
vendored
13
.github/workflows/windows.yml
vendored
@ -34,6 +34,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '2.x'
|
python-version: '2.x'
|
||||||
|
|
||||||
|
- name: Check PR or cron
|
||||||
|
run: |
|
||||||
|
. check_cron_or_pr.sh
|
||||||
|
|
||||||
- name: Clone VSCode repo
|
- name: Clone VSCode repo
|
||||||
run: ./get_repo.sh
|
run: ./get_repo.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -43,6 +47,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: ./check_tags.sh
|
run: ./check_tags.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
|
if: env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
@ -59,16 +64,16 @@ jobs:
|
|||||||
mv vscode\\.build\\win32-${VSCODE_ARCH}\\user-setup\\VSCodeSetup.exe VSCodiumUserSetup-${VSCODE_ARCH}-${LATEST_MS_TAG}.exe
|
mv vscode\\.build\\win32-${VSCODE_ARCH}\\user-setup\\VSCodeSetup.exe VSCodiumUserSetup-${VSCODE_ARCH}-${LATEST_MS_TAG}.exe
|
||||||
mv vscode\\.build\\win32-${VSCODE_ARCH}\\archive\\VSCode-win32-${VSCODE_ARCH}.zip VSCodium-win32-${VSCODE_ARCH}-${LATEST_MS_TAG}.zip
|
mv vscode\\.build\\win32-${VSCODE_ARCH}\\archive\\VSCode-win32-${VSCODE_ARCH}.zip VSCodium-win32-${VSCODE_ARCH}-${LATEST_MS_TAG}.zip
|
||||||
shell: bash
|
shell: bash
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Generate shasums
|
- name: Generate shasums
|
||||||
run: ./sum.sh
|
run: ./sum.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.LATEST_MS_TAG }}
|
tag_name: ${{ env.LATEST_MS_TAG }}
|
||||||
files: |
|
files: |
|
||||||
@ -80,7 +85,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Update versions repo
|
- name: Update versions repo
|
||||||
if: env.SHOULD_BUILD == 'yes'
|
if: env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
|
||||||
run: ./update_version.sh
|
run: ./update_version.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
17
check_cron_or_pr.sh
Normal file
17
check_cron_or_pr.sh
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [[ $github.event.number ]]; then
|
||||||
|
# it's a PR
|
||||||
|
|
||||||
|
export SHOULD_BUILD="yes"
|
||||||
|
export SHOULD_DEPLOY="no"
|
||||||
|
else
|
||||||
|
export SHOULD_DEPLOY="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $GITHUB_ENV ]]; then
|
||||||
|
echo "SHOULD_BUILD=$SHOULD_BUILD" >> $GITHUB_ENV
|
||||||
|
echo "SHOULD_DEPLOY=$SHOULD_DEPLOY" >> $GITHUB_ENV
|
||||||
|
fi
|
@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
nvm use 12
|
|
||||||
|
|
||||||
rm -rf VSCode*
|
rm -rf VSCode*
|
||||||
rm -rf vscode
|
rm -rf vscode
|
||||||
|
|
Loading…
Reference in New Issue
Block a user