Updated for 11.2.5 #34
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: Build WoW Addon | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Extract version number | |
| run: | | |
| version_num=$(grep "## Version:" WCCCAddOn/WCCCAddOn.toc | awk '{print $3}') | |
| echo "version_num=$version_num" >> $GITHUB_ENV | |
| - name: Create release folder and zip archive | |
| run: | | |
| mkdir -p Builds/${{ env.version_num }} | |
| zip -r Builds/${{ env.version_num }}/WCCCAddOn_${{ env.version_num }}.zip WCCCAddOn -x "*.git*" | |
| - name: Create release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| allowUpdates: true | |
| tag: v${{ env.version_num }} | |
| prerelease: ${{ contains(env.version_num, 'alpha') || contains(env.version_num, 'beta') }} | |
| artifacts: "Builds/${{ env.version_num }}/WCCCAddOn_${{ env.version_num }}.zip" | |
| bodyFile: "CHANGELOG.md" |