feat: use master tracks for tag and copy to production track (IN-3005… #297
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
| name: Tag New Release on Push | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout the Latest Code | |
| uses: actions/checkout@v2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Conventional Changelog Action | |
| id: changelog | |
| uses: TriPSs/conventional-changelog-action@v3 | |
| with: | |
| output-file: false | |
| skip-commit: true | |
| skip-version-file: true | |
| - name: Create Release | |
| uses: actions/create-release@v1 | |
| if: ${{ steps.changelog.outputs.skipped == 'false' }} | |
| with: | |
| tag_name: ${{ steps.changelog.outputs.tag }} | |
| release_name: ${{ steps.changelog.outputs.tag }} | |
| body: ${{ steps.changelog.outputs.clean_changelog }} |