macos.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: CI
  2. on:
  3. push:
  4. pull_request:
  5. branches: [ master ]
  6. jobs:
  7. build:
  8. runs-on: macOS-latest
  9. env:
  10. TRAVIS_OS_NAME: "osx"
  11. steps:
  12. - uses: actions/checkout@v2
  13. - name: Setup Node.js environment
  14. uses: actions/setup-node@v1.4.3
  15. with:
  16. node-version: 12.14.1
  17. - name: Clone VSCode repo
  18. run: |
  19. . get_repo.sh
  20. echo "::set-env name=LATEST_MS_TAG::$LATEST_MS_TAG"
  21. echo "::set-env name=LATEST_MS_COMMIT::$LATEST_MS_COMMIT"
  22. - name: Check existing VSCodium tags/releases
  23. run: |
  24. . check_tags.sh
  25. echo "::set-env name=SHOULD_BUILD::$SHOULD_BUILD"
  26. - name: Build
  27. run: ./build.sh
  28. - name: Zip release
  29. run: ./create_zip.sh
  30. - name: Release
  31. uses: softprops/action-gh-release@v1
  32. if: env.SHOULD_BUILD == 'yes'
  33. with:
  34. tag_name: ${{ env.LATEST_MS_TAG }}
  35. files: |
  36. ./*.zip
  37. ./*.dmg
  38. ./*.sha256
  39. env:
  40. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}