-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 2.15 KB
/
release.yml
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:
- '*'
paths-ignore:
- '.github/**'
jobs:
release:
runs-on: ubuntu-22.04
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
CF_URL: https://www.curseforge.com/wow/addons/elvui-split-actionbars
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
WAGO_URL: https://addons.wago.io/addons/elvui-splitactionbars
DISCORD_NEWS_CHANNEL_ID: "1164433316976537620"
RR_AUTHOR_SUPPORT_INFO_NAME: "general-info"
RR_AUTHOR_SUPPORT_INFO_URL: "https://discord.com/channels/1162274244487561216/1171940634672767128"
RR_ADDON_CHANNEL_NAME: "split-actionbars"
RR_ADDON_CHANNEL_URL: "https://discord.com/channels/1162274244487561216/1266235308471488523"
steps:
- name: Clone Project
uses: actions/checkout@v4
with:
fetch-depth: 100
- name: Setup Environment
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Release Job
uses: BigWigsMods/packager@master
- name: Publish
id: publish-to-discord
uses: Crec0/announce-n-crosspost@v1
if: success()
with:
bot-token: ${{ secrets.ANNOUNCER_BOT_TOKEN }}
channel: ${{ env.DISCORD_NEWS_CHANNEL_ID }}
content: |
**__${{ github.event.repository.name }}__** **v${{ env.RELEASE_VERSION }}** *has been released!*
You can view the changes made by viewing the [changelog](<${{ github.event.repository.html_url }}/blob/main/CHANGELOG.md>) here!
Go grab the new version from [Wago AddOns](<${{ env.WAGO_URL }}>) or [Curse](<${{ env.CF_URL }}>)!
If you would like to help support the work I do, consider supporting me via the [Discord Shop](https://discord.com/servers/repooc-reforged-1162274244487561216) or the other various ways listed in the [${{env.RR_AUTHOR_SUPPORT_INFO_NAME}}](<${{env.RR_AUTHOR_SUPPORT_INFO_URL}}>) channel.
You can get help for the addon in the [${{env.RR_ADDON_CHANNEL_NAME}}](<${{env.RR_ADDON_CHANNEL_URL}}>) support channel!
- name: Print message id
run: echo "Message id = ${{ steps.publish-to-discord.outputs.message-id }}"