Skip to content

Commit 7ec5b3e

Browse files
committed
Initial public release
1 parent de1fadf commit 7ec5b3e

File tree

4 files changed

+93
-1
lines changed

4 files changed

+93
-1
lines changed

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Replace toc-versions
18+
uses: NumyAddon/ToCVersions@v1
19+
20+
- name: Create Retail Package
21+
uses: BigWigsMods/packager@v2
22+
with:
23+
args: -S
24+
env:
25+
CF_API_KEY: ${{ secrets.CF_API_KEY }}
26+
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
27+
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
28+
29+
- name: Prepare for Discord webhook
30+
id: discord-webhook-prep
31+
run: |
32+
echo "ZIP_NAME=$(ls .release/*.zip)" >> $GITHUB_OUTPUT
33+
{
34+
echo 'CHANGELOG<<EOF'
35+
cat .release/*/CHANGELOG.md
36+
printf '\nEOF'
37+
} >> "$GITHUB_OUTPUT"
38+
39+
- name: Notify Discord webhook
40+
uses: "tsickert/[email protected]"
41+
with:
42+
webhook-url: "${{secrets.DISCORD_WEBHOOK_URL}}"
43+
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 }})"
44+
username: "NumyAddon"
45+
avatar-url: "https://avatars.githubusercontent.com/u/97855854?s=200&v=4"
46+
filename: ${{ steps.discord-webhook-prep.outputs.ZIP_NAME }}
47+
embed-title: "${{ github.repository }} ${{ github.event.release.tag_name }}"
48+
embed-url: "https://github.com/${{ github.repository }}"
49+
embed-description: "${{ steps.discord-webhook-prep.outputs.CHANGELOG }}"
50+
embed-author-name: "${{ github.event.release.author.login }}"
51+
embed-author-url: "${{ github.event.release.author.html_url }}"
52+
embed-author-icon-url: "${{ github.event.release.author.avatar_url }}"

.github/workflows/tocBump.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: TOC Bump
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
message:
6+
description: 'Commit message'
7+
required: false
8+
default: 'TOC Bump'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Get next version
18+
uses: reecetech/[email protected]
19+
id: version
20+
with:
21+
scheme: semver
22+
increment: patch
23+
24+
- name: Create & push empty commit
25+
run: |
26+
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
27+
git config --global user.name "${{ github.actor }}"
28+
git commit --allow-empty -m "${{ github.event.inputs.message }}"
29+
git push
30+
31+
- name: Publish release
32+
uses: softprops/action-gh-release@v1
33+
with:
34+
# this cannot be ${{ secrets.GITHUB_TOKEN }} because that'll block the on release publish workflow from running
35+
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
36+
name: ${{ steps.version.outputs.v-version }}
37+
tag_name: ${{ steps.version.outputs.v-version }}

NumysAutoMarker.toc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
## Title: Numy's Auto Marker
33
## Notes: Making automated marking easier! /nam
44
## Author: Numy
5-
## Version: @project-version@
65
## SavedVariables: NAMDB
6+
## IconTexture: Interface\Addons\NumysAutoMarker\media\icon
7+
## Version: @project-version@
8+
## X-Curse-Project-ID: 1156415
9+
## X-Wago-ID: aN0YpM6j
710

811
libs\embeds.xml
912

media/icon.jpeg

15.7 KB
Loading

0 commit comments

Comments
 (0)