Skip to content

0.1.9

0.1.9 #233

Workflow file for this run

name: Module Builder
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
outputs:
release-notes: ${{ steps.set-release-notes.outputs.release-notes }}
steps:
- uses: actions/checkout@v4
- name: Set Release Notes for Github
id: set-release-notes-github
run: |
echo "- General:" >> release_notes.txt
echo " - Quality of Life 3rd Party Dialog Updates" >> release_notes.txt
echo " - Added GM Dialog Mirror setting. For Silvery Barbs and Counterspell (and future 3rd party reactions), this will duplicate a dialog to the GM if a player receives a dialog. The dialog is interactable for either party and will process the dialog choice for the selector while dismissing the dialog for the other party. This should resolve any time delay issues for GMs with players who are afk by allowing them to take control." >> release_notes.txt
echo " - Added dialog Pause button if user needs more time to resolve, such as a decision with the GM for example." >> release_notes.txt
echo " - Added top level compendium folder labeled Gambits Premades. Split homebrew compendiums into additional compendiums for GPS Homebrew X vs GPS 3rd Party X" >> release_notes.txt
echo "- Additions:" >> release_notes.txt
echo " - Amulet of the Devout: Automates regaining a charge of channel divinity by using the item." >> release_notes.txt
echo " - Dragon Turtle Dueling Shield: Homebrew item Dragon Turtle Dueling Shield. Because this is homebrew you will find the description on the compendium item. Works in concert with Opportunity Attack" >> release_notes.txt
echo "- Updates:" >> release_notes.txt
echo " - Counterspell: Added dummy item for medkit with a correct reaction manual type. Modified to only process tokens with counterspell that are in combat." >> release_notes.txt
echo " - Silvery Barbs: Added dummy item for medkit with a correct reaction manual type. Modified to only process tokens with counterspell that are in combat." >> release_notes.txt
echo " - Identify Restriction: Added setting for GMs to modify the warning message players see when being bad." >> release_notes.txt
echo " - Opportunity Attack: Added Zephyr Strike exclusion check." >> release_notes.txt
echo "- Bugfixes:" >> release_notes.txt
echo " - Silvery Barbs: Resolved issue with Saving Throws not correctly qualifying enemy tokens. Resolved issue with 0 spell slots still prompting a reaction." >> release_notes.txt
echo " - Hideous Laughter: Fixed Prone being removed on effect end. Fixed missing asset error." >> release_notes.txt
echo "release-notes-github<<EOF" >> $GITHUB_ENV
cat release_notes.txt >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Format Release Notes for Discord
id: format-release-notes-discord
run: |
DISCORD_NOTES=$(awk '{printf "%s\\n", $0}' release_notes.txt | sed 's/\\n$//')
echo "::set-output name=release-notes-discord::$DISCORD_NOTES"
- name: Zip Files
working-directory: ./
run: zip -r ./module.zip ./*
- name: Get Version
shell: bash
id: get-version
run: echo "version=$(node ./.github/workflows/get-version.js)" >> $GITHUB_OUTPUT
- name: Create Release
id: create-release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
name: Release ${{ steps.get-version.outputs.version }}
draft: false
prerelease: false
body: ${{ env.release-notes-github }}
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.zip, ./module.json'
tag: ${{ steps.get-version.outputs.version }}
- name: Release Foundry Package
run: |
curl -X POST "https://api.foundryvtt.com/_api/packages/release_version" \
-H "Content-Type: application/json" \
-H "Authorization: ${{ secrets.FOUNDRY_API_TOKEN }}" \
-d '{
"id": "'"gambits-premades"'",
"release": {
"version": "'"${{ steps.get-version.outputs.version }}"'",
"manifest": "'"https://github.com/gambit07/gambits-premades/releases/latest/download/module.json"'",
"notes": "'"https://github.com/gambit07/gambits-premades/releases/tag/${{ steps.get-version.outputs.version }}"'",
"compatibility": {
"minimum": "'"11"'",
"verified": "'"11"'",
"maximum": "'"11"'"
}
}
}'
- name: Post to Discord
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_MIDI_WEBHOOK }}
run: |
curl -H "Content-Type: application/json" \
-d '{
"embeds": [{
"title": "Gambit'"'"'s Premades Release: ${{ steps.get-version.outputs.version }}",
"description": "**To support my continued work on this module!\n<https://ko-fi.com/gambit07> ❤️**\n\n${{ steps.format-release-notes-discord.outputs.release-notes-discord }}\n\nCheck it out through the Foundry package manager or the link below:\n<https://github.com/gambit07/gambits-premades/releases/tag/${{ steps.get-version.outputs.version }}>",
"image": {
"url": "https://avatars.githubusercontent.com/u/4236874?s=400&u=05d3718580ef87ea13467131a0c1fcaf4956630d&v=4"
}
}]
}' $DISCORD_WEBHOOK