chore: deprecation notice #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow uses actions that are not certified by GitHub. | |
| # They are provided by a third-party and are governed by | |
| # separate terms of service, privacy policy, and support documentation. | |
| # This workflow will download a prebuilt Unity version, install dependencies, build and deploy/publish a new release | |
| name: Deploy and Publish | |
| on: | |
| push: | |
| branches: [ master ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| if: "!contains(github.event.head_commit.message, 'skip ci')" | |
| name: Deploy and Publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: 14 | |
| - name: Install Semantic Release dependencies | |
| run: | | |
| sudo apt-get install bumpversion | |
| npm install -g semantic-release | |
| npm install -g @semantic-release/changelog | |
| npm install -g @semantic-release/exec | |
| npm install -g @semantic-release/git | |
| npm install -g @semantic-release/github | |
| npm install -g @semantic-release/commit-analyzer | |
| npm install -g @semantic-release/release-notes-generator | |
| - name: Publish to Git Releases and Tags | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: npx semantic-release # --verbosity=DEBUG --dry-run | |