-
-
Notifications
You must be signed in to change notification settings - Fork 41
43 lines (41 loc) · 1.32 KB
/
publish-stable.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
name: 🚀 Publish Stable Version
on:
push:
tags-ignore:
- "**alpha**"
- "**beta**"
jobs:
build:
name: 📦 Package
runs-on: ubuntu-latest
steps:
- name: Pull the latest version
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Initialize Python envoriment
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Python dependencies
run: pip install git+https://github.com/SirAnthony/slpp
- name: Run scripts to generate changelogs
run: python generate_changelog.py
- name: Auto Packaging
uses: BigWigsMods/packager@master
env:
CF_API_KEY: ${{ secrets.RELEASE_API_TOKEN_CURSEFORGE }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
WOWI_API_TOKEN: ${{ secrets.RELEASE_API_TOKEN_WOWI }}
WAGO_API_TOKEN: ${{ secrets.RELEASE_API_TOKEN_WAGO }}
- name: Upload to Github Actions
uses: actions/upload-artifact@v4
with:
name: ElvUI_WindTools
path: .release/*.zip
- name: Send a message to Discord if meets a failure
uses: nebularg/actions-discord-webhook@v1
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK_GITHUB_ACTIONS }}
status: ${{ job.status }}
if: failure()