Skip to content

prep 1.11 - toc & cl #16

prep 1.11 - toc & cl

prep 1.11 - toc & cl #16

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
paths-ignore:
- '.github/**'
jobs:
release:
runs-on: ubuntu-latest
env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}
CF_URL: https://www.curseforge.com/wow/addons/elvui-ratiominimapauras
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }}
WAGO_URL: https://addons.wago.io/addons/elvui-ratiominimapauras
steps:
- name: Clone Project
uses: actions/checkout@v3
with:
fetch-depth: 100
- name: Setup Environment
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Release Job
uses: BigWigsMods/packager@master
- name: Notify Discord
if: success()
uses: repooc/djs-actions@my_changes
with:
id: ${{ secrets.DISCORD_WEBHOOK_ID }}
token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
title: 'New *${{ github.event.repository.name }}* Version Released!'
description: '[${{ github.event.sender.login }}](${{ github.event.sender.html_url }}) has released a new version of ${{ github.event.repository.name }}!
If you use a wow addon client that can download from either wago addons or curse, then it is recommended that you use that to install/update the addon. You can update how you see fit, even if you want to download manually and install it, go for it. The can grab the addon from the links down below.'
fields: '[{"name": "Released By:", "value": "[${{ github.event.sender.login }}](${{ github.event.sender.html_url }})", "inline": true}, {"name": "Issue Tracker:", "value": "[${{ github.event.repository.name }}](${{ github.event.repository.html_url }}/issues)", "inline": true}, {"name": "Version", "value": "${{ env.RELEASE_VERSION }}", "inline": true}, {"name": "Wago Addons", "value": "[Click Here](${{ env.WAGO_URL }})", "inline": true}, {"name": "Curseforge", "value": "[Click Here](${{ env.CF_URL }})", "inline": true}]'
footer: Addons by Repooc
timestamp: true
- name: Upload CHANGELOG.txt to Discord
uses: nocturlab/upload-to-discord@master
if: success()
env:
DISCORD_WEBHOOK: ${{ secrets.WEBHOOK_URL }}
with:
args: CHANGELOG.txt
- name: Publish
id: publish-to-discord
uses: Crec0/announce-n-crosspost@v1
if: success()
with:
bot-token: ${{ secrets.ANNOUNCER_BOT_TOKEN }}
channel: ${{ secrets.DISCORD_NEWS_CHANNEL_ID }}
content: |
**${{ github.event.release.name }}** has been released!
${{ github.event.release.body }}
Get it on Github Releases: <${{ github.event.release.html_url }}>
- name: Print message id
run: echo "Message id = ${{ steps.publish-to-discord.outputs.message-id }}"