Skip to content

Updated for 11.2.5

Updated for 11.2.5 #34

Workflow file for this run

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"