-
Notifications
You must be signed in to change notification settings - Fork 1
executable file
·50 lines (43 loc) · 1.56 KB
/
release.yml
File metadata and controls
executable file
·50 lines (43 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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