|
1 | 1 | # #
|
2 | 2 | # @type github workflow
|
3 |
| -# @desc publishes a new release of the gh-action-delete-deploy-env |
4 |
| -# - .github\workflows\release-publish-tag-latest.yml |
5 |
| -# this ensures your tag @latest always links to the most recent release |
6 | 3 | # @author Aetherinox
|
7 | 4 | # @url https://github.com/Aetherinox
|
| 5 | +# @usage releases a new version of the project |
| 6 | +# |
| 7 | +# @secrets secrets.SELF_TOKEN self github personal access token (fine-grained) |
| 8 | +# secrets.SELF_TOKEN_CL self github personal access token (classic) |
| 9 | +# secrets.NPM_TOKEN self npmjs access token |
| 10 | +# secrets.PYPI_API_TOKEN self Pypi API token (production site) - https://pypi.org/ |
| 11 | +# secrets.PYPI_API_TEST_TOKEN self Pypi API token (test site) - https://test.pypi.org/ |
| 12 | +# secrets.SELF_DOCKERHUB_TOKEN self Dockerhub token |
| 13 | +# secrets.CODECOV_TOKEN codecov upload token for nodejs projects |
| 14 | +# secrets.MAXMIND_GELITE_TOKEN maxmind API token |
| 15 | +# secrets.CF_ACCOUNT_ID cloudflare account id |
| 16 | +# secrets.CF_ACCOUNT_TOKEN cloudflare account token |
| 17 | +# secrets.ORG_TOKEN org github personal access token (fine-grained) |
| 18 | +# secrets.ORG_TOKEN_CL org github personal access token (classic) |
| 19 | +# secrets.ORG_DOCKERHUB_TOKEN org dockerhub secret |
| 20 | +# secrets.ORG_GITEA_TOKEN org gitea personal access token (classic) with package:write permission |
| 21 | +# secrets.BOT_GPG_KEY_ASC bot gpg private key (armored) | BEGIN PGP PRIVATE KEY BLOCK |
| 22 | +# secrets.BOT_GPG_KEY_B64 bot gpg private key (binary) converted to base64 |
| 23 | +# secrets.BOT_GPG_PASSPHRASE bot gpg private key passphrase |
| 24 | +# secrets.DISCORD_WEBHOOK_CHAN_GITHUB_RELEASES discord webhook to report release notifications from github to discord |
| 25 | +# secrets.DISCORD_WEBHOOK_CHAN_GITHUB_WORKFLOWS discord webhook to report workflow notifications from github to discord |
| 26 | +# secrets.DISCORD_WEBHOOK_CHAN_GITHUB_UPDATES discord webhook to report activity notifications from github to discord |
| 27 | +# |
| 28 | +# |
| 29 | +# @local these workflows can be tested locally through the use of `act` |
| 30 | +# https://github.com/nektos/act |
| 31 | +# Extract act to folder |
| 32 | +# Add system env var with path to act.exe |
| 33 | +# Run the commands: |
| 34 | +# git pull https://github.com/username/repo |
| 35 | +# act -W .github/workflows/release-publish.yml -P ubuntu-latest=catthehacker/ubuntu:full-22.04 |
| 36 | +# act -W .github/workflows/release-publish.yml -s TOKEN_CL=XXXXXXXXXX --pull=false |
8 | 37 | # #
|
9 | 38 |
|
10 | 39 | name: '📦 Release › Publish'
|
@@ -238,7 +267,7 @@ jobs:
|
238 | 267 |
|
239 | 268 | - name: '👁️🗨️ Package Version › Set'
|
240 | 269 | id: task_initialize_package_getversion
|
241 |
| - working-directory: ./tvapp2 |
| 270 | + working-directory: ./ |
242 | 271 | run: |
|
243 | 272 | VER=$(cat package.json | jq -r '.version')
|
244 | 273 | echo "PACKAGE_VERSION=$VER" >> $GITHUB_OUTPUT
|
@@ -659,7 +688,7 @@ jobs:
|
659 | 688 | fetchViaCommits: true
|
660 | 689 | configurationJson: |
|
661 | 690 | {
|
662 |
| - "template": "## Release Info \n| Item | Value |\n| --- | --- |\n|<sub>📄 ${{ env.FILE_ZIP }}</sub>|<sub>Contains TVApp2 node source code and Docker build kit</sub>|\n|<sub>🏷️ SHA256</sub>|<sub>`${{ env.SHA256SUM }}`</sub>|\n|<sub>🏷️ GUID</sub>|<sub>`${{ steps.task_release_dotenv_get.outputs.GUID }}`</sub>|\n|<sub>🏷️ UUID</sub>|<sub>`${{ steps.task_release_dotenv_get.outputs.UUID }}`</sub>|\n|<sub>🕟 Stamp</sub>|<sub>`#{{FROM_TAG}}-#{{FROM_TAG_DATE}} 🔺 #{{TO_TAG}}-#{{TO_TAG_DATE}}`</sub>|\n|<sub>📅 Last Release</sub>|<sub>`#{{DAYS_SINCE}} days ago`</sub>|\n\n<br>\n\n---\n\n<br>\n\n### What's New\nThis release contains the following changes:\n\n<br>\n\n---\n\n<br>\n\n### Statistics\nHow the files have changed:\n<ul><li><a href='#{{RELEASE_DIFF}}'>Changed files</a> : <b>#{{CHANGED_FILES}}</b></li><li>Changes : <b>#{{CHANGES}}</b></li><li>Commits : <b>#{{COMMITS}}</b></li><li>Additions : <b>#{{ADDITIONS}}</b></li><li>Deletions : <b>#{{DELETIONS}}</b></li><li>PRs (categorized) : <b>#{{CATEGORIZED_COUNT}}</b></li><li>PRs (uncategorized) : <b>#{{UNCATEGORIZED_COUNT}}</b></li><li>PRs (open) : <b>#{{OPEN_COUNT}}</b></li>\n<br />\n</ul>\n\n<br>\n\n---\n\n<br>\n\n### Pull Requests\nThis release is associated with the following pull requests:\n#{{CHANGELOG}}\n\n<br>\n\n---\n\n<br>\n\n" |
| 691 | + "template": "## Release Info \n| Item | Value |\n| --- | --- |\n|<sub>📄 ${{ env.FILE_ZIP }}</sub>|<sub>Contains built github action</sub>|\n|<sub>🏷️ SHA256</sub>|<sub>`${{ env.SHA256SUM }}`</sub>|\n|<sub>🏷️ GUID</sub>|<sub>`${{ steps.task_release_dotenv_get.outputs.GUID }}`</sub>|\n|<sub>🏷️ UUID</sub>|<sub>`${{ steps.task_release_dotenv_get.outputs.UUID }}`</sub>|\n|<sub>🕟 Stamp</sub>|<sub>`#{{FROM_TAG}}-#{{FROM_TAG_DATE}} 🔺 #{{TO_TAG}}-#{{TO_TAG_DATE}}`</sub>|\n|<sub>📅 Last Release</sub>|<sub>`#{{DAYS_SINCE}} days ago`</sub>|\n\n<br>\n\n---\n\n<br>\n\n### What's New\nThis release contains the following changes:\n\n<br>\n\n---\n\n<br>\n\n### Statistics\nHow the files have changed:\n<ul><li><a href='#{{RELEASE_DIFF}}'>Changed files</a> : <b>#{{CHANGED_FILES}}</b></li><li>Changes : <b>#{{CHANGES}}</b></li><li>Commits : <b>#{{COMMITS}}</b></li><li>Additions : <b>#{{ADDITIONS}}</b></li><li>Deletions : <b>#{{DELETIONS}}</b></li><li>PRs (categorized) : <b>#{{CATEGORIZED_COUNT}}</b></li><li>PRs (uncategorized) : <b>#{{UNCATEGORIZED_COUNT}}</b></li><li>PRs (open) : <b>#{{OPEN_COUNT}}</b></li>\n<br />\n</ul>\n\n<br>\n\n---\n\n<br>\n\n### Pull Requests\nThis release is associated with the following pull requests:\n#{{CHANGELOG}}\n\n<br>\n\n---\n\n<br>\n\n" |
663 | 692 | }
|
664 | 693 | env:
|
665 | 694 | GITHUB_TOKEN: ${{ secrets.ADMINSERV_TOKEN }}
|
@@ -695,7 +724,7 @@ jobs:
|
695 | 724 | fetchViaCommits: true
|
696 | 725 | configurationJson: |
|
697 | 726 | {
|
698 |
| - "template": "## Release Info \n| Item | Value |\n| --- | --- |\n|<sub>📄 ${{ env.FILE_ZIP }}</sub>|<sub>Contains TVApp2 node source code and Docker build kit</sub>|\n|<sub>🏷️ SHA256</sub>|<sub>`${{ env.SHA256SUM }}`</sub>|\n|<sub>🏷️ GUID</sub>|<sub>`${{ steps.task_release_dotenv_get.outputs.GUID }}`</sub>|\n|<sub>🏷️ UUID</sub>|<sub>`${{ steps.task_release_dotenv_get.outputs.UUID }}`</sub>|\n|<sub>🕟 Stamp</sub>|<sub>`#{{FROM_TAG}}-#{{FROM_TAG_DATE}} 🔺 #{{TO_TAG}}-#{{TO_TAG_DATE}}`</sub>|\n|<sub>📅 Last Release</sub>|<sub>`#{{DAYS_SINCE}} days ago`</sub>|\n\n<br>\n\n---\n\n<br>\n\n### What's New\nThis release contains the following changes:\n\n<br>\n\n---\n\n<br>\n\n### Statistics\nHow the files have changed:\n<ul><li><a href='#{{RELEASE_DIFF}}'>Changed files</a> : <b>#{{CHANGED_FILES}}</b></li><li>Changes : <b>#{{CHANGES}}</b></li><li>Commits : <b>#{{COMMITS}}</b></li><li>Additions : <b>#{{ADDITIONS}}</b></li><li>Deletions : <b>#{{DELETIONS}}</b></li><li>PRs (categorized) : <b>#{{CATEGORIZED_COUNT}}</b></li><li>PRs (uncategorized) : <b>#{{UNCATEGORIZED_COUNT}}</b></li><li>PRs (open) : <b>#{{OPEN_COUNT}}</b></li>\n<br />\n</ul>\n\n<br>\n\n---\n\n<br>\n\n### Commits (#{{UNCATEGORIZED_COUNT}})\nThe following commits are uncategorized:\n#{{UNCATEGORIZED}}\n\n<br>\n\n---\n\n<br>\n\n### Pull Requests\nThis release is associated with the following pull requests:\n#{{CHANGELOG}}\n\n<br>\n\n" |
| 727 | + "template": "## Release Info \n| Item | Value |\n| --- | --- |\n|<sub>📄 ${{ env.FILE_ZIP }}</sub>|<sub>Contains built github action</sub>|\n|<sub>🏷️ SHA256</sub>|<sub>`${{ env.SHA256SUM }}`</sub>|\n|<sub>🏷️ GUID</sub>|<sub>`${{ steps.task_release_dotenv_get.outputs.GUID }}`</sub>|\n|<sub>🏷️ UUID</sub>|<sub>`${{ steps.task_release_dotenv_get.outputs.UUID }}`</sub>|\n|<sub>🕟 Stamp</sub>|<sub>`#{{FROM_TAG}}-#{{FROM_TAG_DATE}} 🔺 #{{TO_TAG}}-#{{TO_TAG_DATE}}`</sub>|\n|<sub>📅 Last Release</sub>|<sub>`#{{DAYS_SINCE}} days ago`</sub>|\n\n<br>\n\n---\n\n<br>\n\n### What's New\nThis release contains the following changes:\n\n<br>\n\n---\n\n<br>\n\n### Statistics\nHow the files have changed:\n<ul><li><a href='#{{RELEASE_DIFF}}'>Changed files</a> : <b>#{{CHANGED_FILES}}</b></li><li>Changes : <b>#{{CHANGES}}</b></li><li>Commits : <b>#{{COMMITS}}</b></li><li>Additions : <b>#{{ADDITIONS}}</b></li><li>Deletions : <b>#{{DELETIONS}}</b></li><li>PRs (categorized) : <b>#{{CATEGORIZED_COUNT}}</b></li><li>PRs (uncategorized) : <b>#{{UNCATEGORIZED_COUNT}}</b></li><li>PRs (open) : <b>#{{OPEN_COUNT}}</b></li>\n<br />\n</ul>\n\n<br>\n\n---\n\n<br>\n\n### Commits (#{{UNCATEGORIZED_COUNT}})\nThe following commits are uncategorized:\n#{{UNCATEGORIZED}}\n\n<br>\n\n---\n\n<br>\n\n### Pull Requests\nThis release is associated with the following pull requests:\n#{{CHANGELOG}}\n\n<br>\n\n" |
699 | 728 | }
|
700 | 729 | env:
|
701 | 730 | GITHUB_TOKEN: ${{ secrets.ADMINSERV_TOKEN }}
|
@@ -1100,7 +1129,7 @@ jobs:
|
1100 | 1129 | echo "| 🕛 **Deploy Time** | ${{ env.NOW }} |" >> $GITHUB_STEP_SUMMARY
|
1101 | 1130 | echo ""
|
1102 | 1131 | echo "### 📄 File (${{ env.FILE_STABLE }}) " >> $GITHUB_STEP_SUMMARY
|
1103 |
| - echo "This is the main release. It contains all required docker files, and the TVApp2 `package.json`" >> $GITHUB_STEP_SUMMARY |
| 1132 | + echo "This is the main release. `package.json`" >> $GITHUB_STEP_SUMMARY |
1104 | 1133 | echo "| File | Result |" >> $GITHUB_STEP_SUMMARY
|
1105 | 1134 | echo "| ------------------------------- | ----------------------- |" >> $GITHUB_STEP_SUMMARY
|
1106 | 1135 | echo "| 🏷️ **SHA256** | ${{ env.SHA_STABLE }} |" >> $GITHUB_STEP_SUMMARY
|
|
0 commit comments