From 55781bc7706afb2747ea4b8701d9f24821fd0d0d Mon Sep 17 00:00:00 2001 From: Zhou Fang Date: Sun, 11 Aug 2024 17:04:49 +0900 Subject: [PATCH] ci: update pipeline --- .github/{FUNDING.yml => FUNDING.yaml} | 0 ...blish_development.yml => publish-dev.yaml} | 21 +++++++---------- ...publish_stable.yml => publish-stable.yaml} | 23 ++++++++----------- .pkgmeta | 4 ++-- 4 files changed, 19 insertions(+), 29 deletions(-) rename .github/{FUNDING.yml => FUNDING.yaml} (100%) rename .github/workflows/{publish_development.yml => publish-dev.yaml} (64%) rename .github/workflows/{publish_stable.yml => publish-stable.yaml} (60%) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yaml similarity index 100% rename from .github/FUNDING.yml rename to .github/FUNDING.yaml diff --git a/.github/workflows/publish_development.yml b/.github/workflows/publish-dev.yaml similarity index 64% rename from .github/workflows/publish_development.yml rename to .github/workflows/publish-dev.yaml index c6b3530..d03d3d1 100644 --- a/.github/workflows/publish_development.yml +++ b/.github/workflows/publish-dev.yaml @@ -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() diff --git a/.github/workflows/publish_stable.yml b/.github/workflows/publish-stable.yaml similarity index 60% rename from .github/workflows/publish_stable.yml rename to .github/workflows/publish-stable.yaml index 039dcc6..e103c69 100644 --- a/.github/workflows/publish_stable.yml +++ b/.github/workflows/publish-stable.yaml @@ -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() diff --git a/.pkgmeta b/.pkgmeta index 004de2b..911169a 100644 --- a/.pkgmeta +++ b/.pkgmeta @@ -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: @@ -19,4 +19,4 @@ ignore: - README.md - README_zhCN.md - README_zhTW.md - - Title.svg + - README_ruRU.md \ No newline at end of file