refactor: update CI workflow to use job outputs and correct developer name in documentation

This commit is contained in:
2026-08-23 15:39:13 -07:00
parent 7c48f3c0b0
commit fb73590c3e
3 changed files with 10 additions and 7 deletions
+6 -4
View File
@@ -29,12 +29,13 @@ jobs:
id: version
run: |
VERSION=$(node -p "require('./manifest.json').version")
echo "EXT_VERSION=$VERSION" >> $GITHUB_ENV
echo "ext_version=$VERSION" >> "$GITHUB_OUTPUT"
echo "Building extension release for version: $VERSION"
- name: Build Production Extension ZIP
id: package
run: |
ZIP_NAME="brightwheel-exporter-v${{ env.EXT_VERSION }}.zip"
ZIP_NAME="brightwheel-exporter-v${{ steps.version.outputs.ext_version }}.zip"
echo "📦 Packaging $ZIP_NAME..."
zip -r "$ZIP_NAME" . \
-x "*.git*" \
@@ -49,13 +50,14 @@ jobs:
-x "LICENSE" \
-x "*.zip"
echo "ZIP_FILE=$ZIP_NAME" >> $GITHUB_ENV
echo "zip_file=$ZIP_NAME" >> "$GITHUB_OUTPUT"
echo "✅ Package contents verified:"
unzip -l "$ZIP_NAME"
- name: Upload ZIP to GitHub Release Assets
uses: softprops/action-gh-release@v2
with:
files: ${{ env.ZIP_FILE }}
files: ${{ steps.package.outputs.zip_file }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}