mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 06:45:41 -04:00
ci: update release workflow
This commit is contained in:
64
.github/workflows/release.yml
vendored
64
.github/workflows/release.yml
vendored
@@ -169,7 +169,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# Initialize › Get version from package.json VERSION value
|
# Initialize › Set › Package.json › Version
|
||||||
# #
|
# #
|
||||||
|
|
||||||
- name: '👁️🗨️ Package Version › Set'
|
- name: '👁️🗨️ Package Version › Set'
|
||||||
@@ -179,6 +179,10 @@ jobs:
|
|||||||
VER=$(cat package.json | jq -r '.version')
|
VER=$(cat package.json | jq -r '.version')
|
||||||
echo "PACKAGE_VERSION=$VER" >> $GITHUB_OUTPUT
|
echo "PACKAGE_VERSION=$VER" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
# #
|
||||||
|
# Initialize › Get › Package.json › Version
|
||||||
|
# #
|
||||||
|
|
||||||
- name: '👁️🗨️ Package Version › Get'
|
- name: '👁️🗨️ Package Version › Get'
|
||||||
id: task_initialize_package_version_get
|
id: task_initialize_package_version_get
|
||||||
run: |
|
run: |
|
||||||
@@ -258,7 +262,7 @@ jobs:
|
|||||||
npm run root:generate
|
npm run root:generate
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# .ENV › Get
|
# Release › .ENV › Get
|
||||||
# Get guid and uuid from env variable generated by npm
|
# Get guid and uuid from env variable generated by npm
|
||||||
# #
|
# #
|
||||||
|
|
||||||
@@ -269,7 +273,7 @@ jobs:
|
|||||||
path: "./tvapp2/.env"
|
path: "./tvapp2/.env"
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# .ENV › Print (Debug)
|
# Release › .ENV › Print (Debug)
|
||||||
# Show guid and uuid from env variable generated by npm
|
# Show guid and uuid from env variable generated by npm
|
||||||
# #
|
# #
|
||||||
|
|
||||||
@@ -280,7 +284,7 @@ jobs:
|
|||||||
echo "UUID: ${{ steps.task_release_dotenv_get.outputs.UUID }}"
|
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 )'
|
- name: '🔨 Build › Stable ( ${{ env.PROJECT_NAME }}-${{ env.PACKAGE_VERSION }}.zip )'
|
||||||
@@ -295,6 +299,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.ADMINSERV_TOKEN_CL }}
|
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 )'
|
- name: '🔨 Build › RC ( ${{ env.PROJECT_NAME }}-${{ env.PACKAGE_VERSION }}-rc.${{ inputs.VERSION_RC }}.zip )'
|
||||||
id: task_release_build_rc
|
id: task_release_build_rc
|
||||||
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
|
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
|
||||||
@@ -308,7 +316,7 @@ jobs:
|
|||||||
NODE_AUTH_TOKEN: ${{ secrets.ADMINSERV_TOKEN_CL }}
|
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
|
# 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
|
# 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 }}
|
gpg_passphrase: ${{ secrets.ADMINSERV_GPG_PASSPHRASE }}
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# [ Tag ]: Confirm
|
# Release › Tag › Confirm
|
||||||
#
|
#
|
||||||
# check if tag already exists
|
# check if tag already exists
|
||||||
# #
|
# #
|
||||||
@@ -338,7 +346,7 @@ jobs:
|
|||||||
echo "Tag already present: ${{ steps.task_release_tag_create.outputs.tag_exists }}"
|
echo "Tag already present: ${{ steps.task_release_tag_create.outputs.tag_exists }}"
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# Checksum › Generate
|
# Release › Checksum › Stable
|
||||||
# #
|
# #
|
||||||
|
|
||||||
- name: '🆔 Checksum › Stable'
|
- name: '🆔 Checksum › Stable'
|
||||||
@@ -355,6 +363,10 @@ jobs:
|
|||||||
sha256_compose="$(shasum --algorithm 256 ${filename_compose_zip} | awk '{ print $1 }')"
|
sha256_compose="$(shasum --algorithm 256 ${filename_compose_zip} | awk '{ print $1 }')"
|
||||||
echo "FILE_COMPOSE_ZIP=${filename_compose_zip}" >> $GITHUB_ENV
|
echo "FILE_COMPOSE_ZIP=${filename_compose_zip}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
# #
|
||||||
|
# Release › Checksum › Release Candidate
|
||||||
|
# #
|
||||||
|
|
||||||
- name: '🆔 Checksum › RC'
|
- name: '🆔 Checksum › RC'
|
||||||
id: task_release_checksum_rc_set
|
id: task_release_checksum_rc_set
|
||||||
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
|
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
|
||||||
@@ -370,7 +382,7 @@ jobs:
|
|||||||
echo "FILE_COMPOSE_ZIP=${filename_compose_zip}" >> $GITHUB_ENV
|
echo "FILE_COMPOSE_ZIP=${filename_compose_zip}" >> $GITHUB_ENV
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# Checksum › Print
|
# Release › Checksum › Print
|
||||||
# #
|
# #
|
||||||
|
|
||||||
- name: '🆔 Checksum › Print'
|
- name: '🆔 Checksum › Print'
|
||||||
@@ -379,7 +391,7 @@ jobs:
|
|||||||
echo ${{ env.SHA256SUM }}
|
echo ${{ env.SHA256SUM }}
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# Contributor Images
|
# Release › Contributor Images
|
||||||
# #
|
# #
|
||||||
|
|
||||||
- name: '🥸 Contributors › Generate'
|
- name: '🥸 Contributors › Generate'
|
||||||
@@ -391,7 +403,7 @@ jobs:
|
|||||||
avatarSize: 42
|
avatarSize: 42
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# Checksum › Add to ZIP file
|
# Release › Checksum › Add › Stable
|
||||||
# #
|
# #
|
||||||
|
|
||||||
- name: '📦 Zip › Add Checksum › Stable'
|
- name: '📦 Zip › Add Checksum › Stable'
|
||||||
@@ -402,6 +414,10 @@ jobs:
|
|||||||
zip -jr ${{ env.PROJECT_NAME }}-${{ env.PACKAGE_VERSION }}.zip SHA256SUMS.txt
|
zip -jr ${{ env.PROJECT_NAME }}-${{ env.PACKAGE_VERSION }}.zip SHA256SUMS.txt
|
||||||
ls
|
ls
|
||||||
|
|
||||||
|
# #
|
||||||
|
# Release › Checksum › Add › Release Candidate
|
||||||
|
# #
|
||||||
|
|
||||||
- name: '📦 Zip › Add Checksum › RC'
|
- name: '📦 Zip › Add Checksum › RC'
|
||||||
id: task_release_zip_rc
|
id: task_release_zip_rc
|
||||||
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
|
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
|
||||||
@@ -411,7 +427,7 @@ jobs:
|
|||||||
ls
|
ls
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# Changelog › Generate
|
# Release › Changelog › Generate
|
||||||
#
|
#
|
||||||
# generates a changelog from the github api. requires a PREVIOUS_TAG in order to figure
|
# generates a changelog from the github api. requires a PREVIOUS_TAG in order to figure
|
||||||
# out the changes made between the two versions.
|
# out the changes made between the two versions.
|
||||||
@@ -490,13 +506,15 @@ jobs:
|
|||||||
id: task_release_changelog_escape_categorized
|
id: task_release_changelog_escape_categorized
|
||||||
env:
|
env:
|
||||||
CHANGELOG_CATEGORIZED: ${{ steps.task_release_changelog_categorized.outputs.changelog }}
|
CHANGELOG_CATEGORIZED: ${{ steps.task_release_changelog_categorized.outputs.changelog }}
|
||||||
run: echo "CHANGELOG_CATEGORIZED"
|
run:
|
||||||
|
echo "$CHANGELOG_CATEGORIZED"
|
||||||
|
|
||||||
- name: "🙊 Changelog › Step to Env › Uncategorized"
|
- name: "🙊 Changelog › Step to Env › Uncategorized"
|
||||||
id: task_release_changelog_escape_uncategorized
|
id: task_release_changelog_escape_uncategorized
|
||||||
env:
|
env:
|
||||||
CHANGELOG_UNCATEGORIZED: ${{ steps.task_release_changelog_uncategorized.outputs.changelog }}
|
CHANGELOG_UNCATEGORIZED: ${{ steps.task_release_changelog_uncategorized.outputs.changelog }}
|
||||||
run: echo "CHANGELOG_UNCATEGORIZED"
|
run:
|
||||||
|
echo "$CHANGELOG_UNCATEGORIZED"
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# Changelog › Fetch
|
# Changelog › Fetch
|
||||||
@@ -518,6 +536,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "${{ env.CHANGELOG_UNCATEGORIZED }}"
|
echo "${{ env.CHANGELOG_UNCATEGORIZED }}"
|
||||||
|
|
||||||
|
# #
|
||||||
|
# artifacts > download
|
||||||
|
# #
|
||||||
|
|
||||||
|
- name: "⚙️ Debug › Clean Dist Folder"
|
||||||
|
run: |
|
||||||
|
tree
|
||||||
|
|
||||||
# #
|
# #
|
||||||
# [ Release ]: Post Release
|
# [ Release ]: Post Release
|
||||||
#
|
#
|
||||||
@@ -528,9 +554,11 @@ jobs:
|
|||||||
# #
|
# #
|
||||||
|
|
||||||
- name: "🏳️ Post › Stable"
|
- name: "🏳️ Post › Stable"
|
||||||
if: ${{ startsWith( inputs.PRERELEASE, false ) }}
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
id: task_release_bundle_st
|
id: task_release_bundle_st
|
||||||
|
if: |
|
||||||
|
startsWith( inputs.PRERELEASE, false ) ||
|
||||||
|
startsWith( env.PRERELEASE, false )
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.ADMINSERV_TOKEN_CL }}
|
GITHUB_TOKEN: ${{ secrets.ADMINSERV_TOKEN_CL }}
|
||||||
with:
|
with:
|
||||||
@@ -550,9 +578,11 @@ jobs:
|
|||||||
${{ env.CHANGELOG_UNCATEGORIZED }}
|
${{ env.CHANGELOG_UNCATEGORIZED }}
|
||||||
|
|
||||||
- name: "🏳️ Post › Release Candidate"
|
- name: "🏳️ Post › Release Candidate"
|
||||||
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
id: task_release_bundle_rc
|
id: task_release_bundle_rc
|
||||||
|
if: |
|
||||||
|
startsWith( inputs.PRERELEASE, true ) ||
|
||||||
|
startsWith( env.PRERELEASE, true )
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.ADMINSERV_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.ADMINSERV_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user