vscodium/.github/workflows/macos.yml

57 lines
1.3 KiB
YAML
Raw Normal View History

2020-09-18 15:41:04 +03:00
name: CI
on:
push:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macOS-latest
env:
TRAVIS_OS_NAME: "osx"
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v1.4.3
with:
node-version: 12.14.1
- name: Clone VSCode repo
run: |
. get_repo.sh
echo "::set-env name=LATEST_MS_TAG::$LATEST_MS_TAG"
echo "::set-env name=LATEST_MS_COMMIT::$LATEST_MS_COMMIT"
- name: Check existing VSCodium tags/releases
2020-09-18 16:01:29 +03:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020-09-18 15:41:04 +03:00
run: |
. check_tags.sh
echo "::set-env name=SHOULD_BUILD::$SHOULD_BUILD"
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020-09-18 15:41:04 +03:00
run: ./build.sh
- name: Zip release
run: ./create_zip.sh
2020-09-19 00:54:45 +03:00
- name: DMG the release
run: ./create_dmg.sh
2020-09-18 15:41:04 +03:00
- name: Release
uses: softprops/action-gh-release@v1
2020-09-18 15:42:37 +03:00
if: env.SHOULD_BUILD == 'yes'
2020-09-18 15:41:04 +03:00
with:
tag_name: ${{ env.LATEST_MS_TAG }}
files: |
./*.zip
./*.dmg
./*.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}