should also make sure that utf8sub uses the graceful utf8charbytes fn #49
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: Package and release | |
# we need to let GitHub know _when_ we want to release, which is only when we create a new tag. | |
on: | |
push: | |
tags: | |
- "**" | |
jobs: | |
LUA: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check LUA | |
uses: Krealle/luals-check-action@v1 | |
with: | |
config-path: .vscode/settings.json | |
release: | |
runs-on: ubuntu-latest | |
needs: LUA | |
outputs: | |
changeLogText: ${{ steps.readChanglog.outputs.text }} | |
# "steps" holds a list of all the steps needed to package and release our AddOn | |
steps: | |
- name: Clone Project | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # gets git history for changelogs | |
- name: Hack around https://github.com/actions/checkout/issues/290 | |
run: | | |
git fetch --tags --force | |
- name: Generate Changelog | |
id: Changelog | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: ./generate_changelog.sh | |
- name: Save Changelog in Variable | |
uses: Stanzilla/[email protected] | |
id: readChanglog | |
with: | |
path: CHANGELOG.md | |
# once cloned, we just run the GitHub Action for the packager project | |
- name: Package and release | |
env: | |
CF_API_KEY: ${{ secrets.CF_API_KEY }} | |
WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }} | |
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} | |
uses: BigWigsMods/packager@v2 | |
discord-release-notification: | |
runs-on: ubuntu-latest | |
needs: release | |
env: | |
MESSAGE: "New Cell UnitFrames Release" | |
steps: | |
- name: Send Discord Notification | |
id: discord | |
uses: tsickert/[email protected] | |
if: success() | |
with: | |
webhook-url: ${{ secrets.RELEASE_WEBHOOK_URL }} | |
embed-title: ${{ env.MESSAGE }} | |
embed-url: https://github.com/Krealle/Cell_UnitFrames/releases/latest | |
embed-description: ${{needs.release.outputs.changeLogText}} | |
content: "<@&1278369314604322921>" |