-
-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (33 loc) · 1.01 KB
/
publish-stable.yaml
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
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@v1
with:
fetch-depth: 50
- 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: WindDungeonHelper
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()