diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index abbdff7..5365ac1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,3 +51,8 @@ jobs: with: name: executable path: dist/ + - uses: nelonoel/branch-name@v1.0.1 + - name: Deploy release (MacOS) + if: ${{ matrix.node_version }} == 16 && ${BRANCH_NAME} == 'master' && runner.os == 'macOS' && ${{ github.event.head_commit.message }} == 'release' + run: | + npx semantic-release@17 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0f6d607..0000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ - -jobs: - include: - os: osx - osx_image: xcode11.6 - language: node_js - node_js: "16" - -cache: - yarn: true - directories: - - node_modules - -before_install: git pull - -script: - - npm test - -deploy: - provider: script - skip_cleanup: true - script: - - npx semantic-release@17 - on: - branch: master - condition: $TRAVIS_COMMIT_MESSAGE = "release"