chore: format #51
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |