feat: add Ctrl+Click gear preview with dressing room #30
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create addon package | |
| run: | | |
| mkdir -p release | |
| rsync -av --exclude='.git*' --exclude='.github' --exclude='release' --exclude='*.md' --exclude='ROADMAP.md' ./ release/HonorLog/ | |
| cd release && zip -r HonorLog-${{ github.ref_name }}.zip HonorLog | |
| - name: Extract changelog | |
| id: changelog | |
| run: | | |
| # Use full changelog (skip the "# Changelog" header line) | |
| CHANGELOG=$(tail -n +3 CHANGELOG.md) | |
| # Handle multi-line output for GitHub Actions | |
| echo "content<<EOF" >> $GITHUB_OUTPUT | |
| echo "$CHANGELOG" >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| - name: Upload to CurseForge | |
| uses: itsmeow/curseforge-upload@v3 | |
| with: | |
| token: ${{ secrets.CURSEFORGE_TOKEN }} | |
| project_id: 1442154 # Replace with your actual CurseForge project ID | |
| game_endpoint: wow | |
| file_path: release/HonorLog-${{ github.ref_name }}.zip | |
| changelog: ${{ steps.changelog.outputs.content }} | |
| changelog_type: markdown | |
| display_name: HonorLog ${{ github.ref_name }} | |
| game_versions: "WoW Burning Crusade Classic,2.5.4" | |
| release_type: release | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: release/HonorLog-${{ github.ref_name }}.zip | |
| generate_release_notes: true |