chore: regenerate the changelogs for 1.2.2 and 5.2.2 #682
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: Publish Addons | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| # Full history and tags: the changelogs are derived from it, and the release | |
| # notes diff this push against the commit the last publish tagged. | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Validate | |
| run: node resources/scripts/tamhelper.js validate | |
| - name: Check changelogs | |
| run: node resources/scripts/tamhelper.js changelog --check | |
| - name: Build addon ZIPs | |
| run: node resources/scripts/tamhelper.js tam-to-zip --all | |
| - name: Publish release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_EVENT_BEFORE: ${{ github.event.before }} | |
| run: node resources/scripts/tamhelper.js publish-release |