v1.4.17 #45
Workflow file for this run
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: CI | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Replace toc-versions | |
| uses: NumyAddon/ToCVersions@v1 | |
| - name: Grab NumyConfig Config Directory | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: NumyAddon/NumyConfig | |
| path: 'Config' | |
| sparse-checkout: 'Config' | |
| sparse-checkout-cone-mode: false | |
| - name: Namespace config addon placeholders | |
| run: | | |
| mv Config/Config/* Config | |
| grep -rl __NUMY_CONFIG_ADDON_PLACEHOLDER__ Config/*.{xml,lua} | xargs sed -i "s/__NUMY_CONFIG_ADDON_PLACEHOLDER__/TransmogUpgradeMaster/g" | |
| rm -rf Config/.git | |
| rm -rf Config/Config | |
| git add Config/* | |
| shell: bash | |
| - name: Create Retail Package | |
| uses: BigWigsMods/packager@v2 | |
| env: | |
| CF_API_KEY: ${{ secrets.CF_API_KEY }} | |
| GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} | |
| WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }} | |
| - name: Prepare for Discord webhook | |
| id: discord-webhook-prep | |
| run: | | |
| echo "ZIP_NAME=$(ls .release/*.zip)" >> $GITHUB_OUTPUT | |
| { | |
| echo 'CHANGELOG<<EOF' | |
| cat .release/*/CHANGELOG.md | |
| printf '\nEOF' | |
| } >> "$GITHUB_OUTPUT" | |
| - name: Notify Discord webhook | |
| uses: "tsickert/[email protected]" | |
| with: | |
| webhook-url: "${{secrets.DISCORD_WEBHOOK_URL}}" | |
| content: "[${{ github.repository }}](https://github.com/${{ github.repository }}) New version released: [${{ github.event.release.tag_name }}](https://github.com/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }})" | |
| username: "NumyAddon" | |
| avatar-url: "https://avatars.githubusercontent.com/u/97855854?s=200&v=4" | |
| filename: ${{ steps.discord-webhook-prep.outputs.ZIP_NAME }} | |
| embed-title: "${{ github.repository }} ${{ github.event.release.tag_name }}" | |
| embed-url: "https://github.com/${{ github.repository }}" | |
| embed-description: "${{ steps.discord-webhook-prep.outputs.CHANGELOG }}" | |
| embed-author-name: "${{ github.event.release.author.login }}" | |
| embed-author-url: "${{ github.event.release.author.html_url }}" | |
| embed-author-icon-url: "${{ github.event.release.author.avatar_url }}" |