Skip to content

Commit

Permalink
ci: update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
fang2hou committed Aug 11, 2024
1 parent 0f27883 commit 55781bc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 29 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,37 +1,32 @@
name: publish_development
name: 🧪 Publish Test Version

on:
push:
tags:
- "**-alpha-**"
- "**-beta-**"
- '**alpha**'
- '**beta**'

jobs:
build:
name: 📦 Package
runs-on: ubuntu-latest

steps:
- name: Pull the latest version
uses: actions/checkout@v1
with:
fetch-depth: 50

uses: actions/checkout@v4
- name: Auto Packaging
uses: BigWigsMods/packager@master
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
CF_API_KEY: ${{ secrets.RELEASE_API_TOKEN_CURSEFORGE }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}]

WAGO_API_TOKEN: ${{ secrets.RELEASE_API_TOKEN_WAGO }}
- name: Upload to Github Actions
uses: actions/upload-artifact@v2
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.WEBHOOK_URL }}
webhook_url: ${{ secrets.DISCORD_WEBHOOK_GITHUB_ACTIONS }}
status: ${{ job.status }}
if: failure()
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
name: publish_stable
name: 🚀 Publish Stable Version

on:
push:
tags-ignore:
- "**-alpha-**"
- "**-beta-**"
- '**alpha**'
- '**beta**'

jobs:
build:
name: 📦 Package
runs-on: ubuntu-latest

steps:
- name: Pull the latest version
uses: actions/checkout@v1
with:
fetch-depth: 50

uses: actions/checkout@v4
- name: Auto Packaging
uses: BigWigsMods/packager@master
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
CF_API_KEY: ${{ secrets.RELEASE_API_TOKEN_CURSEFORGE }}
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
WAGO_API_TOKEN: ${{ secrets.WAGO_API_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@v2
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.WEBHOOK_URL }}
webhook_url: ${{ secrets.DISCORD_WEBHOOK_GITHUB_ACTIONS }}
status: ${{ job.status }}
if: failure()
4 changes: 2 additions & 2 deletions .pkgmeta
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ externals:
url: https://repos.wowace.com/wow/libdbicon-1-0/trunk
type: svn
Libraries/LibNPCInfo:
url: https://github.com/fang2hou/LibNPCInfo
url: https://github.com/wind-addons/LibNPCInfo
branch: main

ignore:
Expand All @@ -19,4 +19,4 @@ ignore:
- README.md
- README_zhCN.md
- README_zhTW.md
- Title.svg
- README_ruRU.md

0 comments on commit 55781bc

Please sign in to comment.