-
-
Notifications
You must be signed in to change notification settings - Fork 13
48 lines (41 loc) · 2.46 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
name: Release
on:
push:
tags:
- "**"
paths-ignore:
- ".github/**"
jobs:
build:
runs-on: ubuntu-latest
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
CF_URL: https://www.curseforge.com/wow/addons/merathilis-ui
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
WAGO_URL: https://addons.wago.io/addons/elvui-merathilisui
# for github releases, this secret is automatically provided to the workflow
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Clone Project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Hack around https://github.com/actions/checkout/issues/290
run: |
git fetch --tags --force
- name: Setup Environment
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Release Job
uses: BigWigsMods/packager@master
- name: Send status to Discord
uses: repooc/djs-actions@my_changes
with:
id: ${{ secrets.DISCORD_WEBHOOK_ID }}
token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
title: "New *${{ github.event.repository.name }}* Version Released!"
description: "[${{ github.event.sender.login }}](${{ github.event.sender.html_url }}) has released a new version of ${{ github.event.repository.name }}!
If you use a wow addon client that can download from either wago addons or curse, then it is recommended that you use that to install/update the addon. You can update how you see fit, even if you want to download manually and install it, go for it. The can grab the addon from the links down below."
fields: '[{"name": "Released By:", "value": "[${{ github.event.sender.login }}](${{ github.event.sender.html_url }})", "inline": true}, {"name": "Issue Tracker:", "value": "[${{ github.event.repository.name }}](${{ github.event.repository.html_url }}/issues)", "inline": true}, {"name": "Version", "value": "${{ env.RELEASE_VERSION }}", "inline": true}, {"name": "Wago Addons", "value": "[Click Here](${{ env.WAGO_URL }})", "inline": true}, {"name": "Curseforge", "value": "[Click Here](${{ env.CF_URL }})", "inline": true}]'
footer: Addon by Merathilis
timestamp: true
if: success()