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 20, 2024
1 parent 4ca1cff commit e073045
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,37 +1,34 @@
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

- 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: AdiBagsElvUISkin
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,37 +1,35 @@
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

- 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 }}

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: AdiBagsElvUISkin
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()

0 comments on commit e073045

Please sign in to comment.