Skip to content

Commit

Permalink
Build and Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
JPMeehan committed Feb 9, 2024
1 parent 5344ec5 commit 97d9f8f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 49 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,19 @@
#
name: Create Module Files For GitHub Release


env:
# The URL used for the module's "Project URL" link on FoundryVTT's website.
project_url: "https://github.com/${{github.repository}}"
project_url: 'https://github.com/${{github.repository}}'

# A URL that will always point to the latest manifest.
# FoundryVTT uses this URL to check whether the current module version that
# is installed is the latest version. This URL should NOT change,
# otherwise FoundryVTT won't be able to perform this check.
latest_manifest_url: "https://github.com/${{github.repository}}/releases/latest/download/module.json"
latest_manifest_url: 'https://github.com/${{github.repository}}/releases/latest/download/module.json'

# The URL to the module archive associated with the module release being
# processed by this workflow.
release_module_url: "https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip"

release_module_url: 'https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip'

on:
# Only run this workflow when a release is published.
Expand All @@ -61,7 +59,6 @@ on:
release:
types: [published]


jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -72,7 +69,6 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4


# Extract version embedded in the tag.
# This step expects the tag to be one of the following formats:
# - "v<major>.<minor>.<patch>" (e.g., "v1.2.3")
Expand All @@ -84,7 +80,6 @@ jobs:
id: get_version
uses: battila7/get-version-action@v2


# Modify "module.json" with values specific to the release.
# Since the values for the "version" and "url" keys aren't known ahead of
# time, the manifest file in the repository is updated with these values.
Expand All @@ -102,6 +97,15 @@ jobs:
MANIFEST: ${{ env.latest_manifest_url }}
DOWNLOAD: ${{ env.release_module_url }}

# `npm ci` is recommended:
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
- name: Install Dependencies
run: npm ci

- name: Build JS
run: |
npm run build --if-present
mv --force talent-psionics-compiled.mjs talent-psionics.mjs
# Create a "module.zip" archive containing all the module's required files.
# If you have other directories or files that will need to be added to
Expand All @@ -117,19 +121,16 @@ jobs:
./module.zip \
`# The files that will be included.` \
module.json \
talent-psionics.mjs \
talent-psionics.css \
README.md \
CHANGELOG.md \
images \
assets/ \
templates/ \
scripts/ \
styles/ \
packs/ \
languages/ \
lang/
# Don't forget to add a backslash at the end of the line for any
# additional files or directories!
# Update the GitHub release with the manifest and module archive files.
- name: Update Release With Files
id: create_version_release
Expand All @@ -142,4 +143,4 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.json, ./module.zip'
tag: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body }}
body: ${{ github.event.release.body }}
36 changes: 2 additions & 34 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,5 @@
# Changelog

## 1.2.2
## 0.9.0 Beta Release

* Fix a bug where opening a non-talent's sheet would result in just the actor's image being visible with nothing else

## 1.2.1

* Update to support D&D5e 2.4.0

## 1.2.0

* Adds a flag for tracking max strain for other modules/effects to hook into. Found at `flags.ceane-talent.strain.max`
* Allows strain and the strain tracks to be renamed in the module settings

## 1.1.0

* Adds a flag for tracking total strain for other modules/effects to hook into. Found at `flags.ceane-talent.strain.total`
* Fixes a couple of bugs for V10 users

## 1.0.1

* Fixes the missing `languages` folder in the package release

## 1.0.0

Initial release

* Supports Vanilla and Tidy5e sheets, and Ready Set Roll.
* Spellbook
* Power specialties are added to spell schools
* Talent Power is added as a spell preparation mode
* Spell Levels are automatically converted to Power Orders for talent powers
* Strain tab
* Total and Maximum strain are automatically calculated
* Strain can be applied by clicking checkbox for desired effect, or editing the numbers in the input boxes
* Invalid options are automatically greyed out
Initial release, forked from the "Talent Character Sheet Support for D&D 5e" module

0 comments on commit 97d9f8f

Please sign in to comment.