ci: update release workflow

This commit is contained in:
2025-03-25 12:43:20 -07:00
parent e857bfee03
commit 9329a3a032

View File

@@ -169,7 +169,7 @@ jobs:
fetch-depth: 0
# #
# Initialize Get version from package.json VERSION value
# Initialize Set Package.json Version
# #
- name: '👁️‍🗨️ Package Version Set'
@@ -179,6 +179,10 @@ jobs:
VER=$(cat package.json | jq -r '.version')
echo "PACKAGE_VERSION=$VER" >> $GITHUB_OUTPUT
# #
# Initialize Get Package.json Version
# #
- name: '👁️‍🗨️ Package Version Get'
id: task_initialize_package_version_get
run: |
@@ -258,7 +262,7 @@ jobs:
npm run root:generate
# #
# .ENV Get
# Release .ENV Get
# Get guid and uuid from env variable generated by npm
# #
@@ -269,7 +273,7 @@ jobs:
path: "./tvapp2/.env"
# #
# .ENV Print (Debug)
# Release .ENV Print (Debug)
# Show guid and uuid from env variable generated by npm
# #
@@ -280,7 +284,7 @@ jobs:
echo "UUID: ${{ steps.task_release_dotenv_get.outputs.UUID }}"
# #
# Build Project & Create Zip
# Release Build Stable
# #
- name: '🔨 Build Stable ( ${{ env.PROJECT_NAME }}-${{ env.PACKAGE_VERSION }}.zip )'
@@ -295,6 +299,10 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.ADMINSERV_TOKEN_CL }}
# #
# Release Build Release Candidate
# #
- name: '🔨 Build RC ( ${{ env.PROJECT_NAME }}-${{ env.PACKAGE_VERSION }}-rc.${{ inputs.VERSION_RC }}.zip )'
id: task_release_build_rc
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
@@ -308,7 +316,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.ADMINSERV_TOKEN_CL }}
# #
# [ Tag ]: Pre Create
# Release Tag Pre Create
#
# in order to use the changelog github action, you must pre-create the tag otherwise
# the changelog action will have no idea what tag you are going to be creating and
@@ -326,7 +334,7 @@ jobs:
gpg_passphrase: ${{ secrets.ADMINSERV_GPG_PASSPHRASE }}
# #
# [ Tag ]: Confirm
# Release Tag Confirm
#
# check if tag already exists
# #
@@ -338,7 +346,7 @@ jobs:
echo "Tag already present: ${{ steps.task_release_tag_create.outputs.tag_exists }}"
# #
# Checksum Generate
# Release Checksum Stable
# #
- name: '🆔 Checksum Stable'
@@ -355,6 +363,10 @@ jobs:
sha256_compose="$(shasum --algorithm 256 ${filename_compose_zip} | awk '{ print $1 }')"
echo "FILE_COMPOSE_ZIP=${filename_compose_zip}" >> $GITHUB_ENV
# #
# Release Checksum Release Candidate
# #
- name: '🆔 Checksum RC'
id: task_release_checksum_rc_set
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
@@ -370,7 +382,7 @@ jobs:
echo "FILE_COMPOSE_ZIP=${filename_compose_zip}" >> $GITHUB_ENV
# #
# Checksum Print
# Release Checksum Print
# #
- name: '🆔 Checksum Print'
@@ -379,7 +391,7 @@ jobs:
echo ${{ env.SHA256SUM }}
# #
# Contributor Images
# Release Contributor Images
# #
- name: '🥸 Contributors Generate'
@@ -391,7 +403,7 @@ jobs:
avatarSize: 42
# #
# Checksum Add to ZIP file
# Release Checksum Add Stable
# #
- name: '📦 Zip Add Checksum Stable'
@@ -402,6 +414,10 @@ jobs:
zip -jr ${{ env.PROJECT_NAME }}-${{ env.PACKAGE_VERSION }}.zip SHA256SUMS.txt
ls
# #
# Release Checksum Add Release Candidate
# #
- name: '📦 Zip Add Checksum RC'
id: task_release_zip_rc
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
@@ -411,7 +427,7 @@ jobs:
ls
# #
# Changelog Generate
# Release Changelog Generate
#
# generates a changelog from the github api. requires a PREVIOUS_TAG in order to figure
# out the changes made between the two versions.
@@ -490,13 +506,15 @@ jobs:
id: task_release_changelog_escape_categorized
env:
CHANGELOG_CATEGORIZED: ${{ steps.task_release_changelog_categorized.outputs.changelog }}
run: echo "CHANGELOG_CATEGORIZED"
run:
echo "$CHANGELOG_CATEGORIZED"
- name: "🙊 Changelog Step to Env Uncategorized"
id: task_release_changelog_escape_uncategorized
env:
CHANGELOG_UNCATEGORIZED: ${{ steps.task_release_changelog_uncategorized.outputs.changelog }}
run: echo "CHANGELOG_UNCATEGORIZED"
run:
echo "$CHANGELOG_UNCATEGORIZED"
# #
# Changelog Fetch
@@ -518,6 +536,14 @@ jobs:
run: |
echo "${{ env.CHANGELOG_UNCATEGORIZED }}"
# #
# artifacts > download
# #
- name: "⚙️ Debug Clean Dist Folder"
run: |
tree
# #
# [ Release ]: Post Release
#
@@ -528,9 +554,11 @@ jobs:
# #
- name: "🏳️ Post Stable"
if: ${{ startsWith( inputs.PRERELEASE, false ) }}
uses: softprops/action-gh-release@v2
id: task_release_bundle_st
if: |
startsWith( inputs.PRERELEASE, false ) ||
startsWith( env.PRERELEASE, false )
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.ADMINSERV_TOKEN_CL }}
with:
@@ -550,9 +578,11 @@ jobs:
${{ env.CHANGELOG_UNCATEGORIZED }}
- name: "🏳️ Post Release Candidate"
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
uses: softprops/action-gh-release@v2
id: task_release_bundle_rc
if: |
startsWith( inputs.PRERELEASE, true ) ||
startsWith( env.PRERELEASE, true )
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.ADMINSERV_TOKEN }}
with: