Skip to content

Commit 949cfd0

Browse files
committed
ci: update
1 parent 2b76bda commit 949cfd0

File tree

3 files changed

+65
-21
lines changed

3 files changed

+65
-21
lines changed

.github/FUNDING.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
custom: ['https://buymeacoffee.com/aetherinox']
1+
custom: ["https://buymeacoffee.com/aetherinox"]
2+
github: # [repo-name, aetherinox]
3+
patreon: # Replace with a single Patreon username
4+
open_collective: # name
5+
ko_fi: # Replace with a single Ko-fi username
6+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
7+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
8+
liberapay: # Replace with a single Liberapay username
9+
issuehunt: # Replace with a single IssueHunt username
10+
otechie: # Replace with a single Otechie username

.github/workflows/labels-create.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ env:
2323
ASSIGN_USER: Aetherinox
2424
BOT_NAME_1: AdminServ
2525
BOT_NAME_2: AdminServX
26+
BOT_NAME_3: EuropaServ
2627
BOT_NAME_DEPENDABOT: dependabot[bot]
2728
LABELS_JSON: |
2829
[
@@ -82,7 +83,7 @@ env:
8283
{ "name": "⚠ Announcement", "color": "DB4712", "description": "KeeWeb announcements" },
8384
{ "name": "📰 Progress Report", "color": "392297", "description": "Updates on the development of KeeWeb" },
8485
{ "name": "📦 Release", "color": "277542", "description": "Release announcements" },
85-
{ "name": "✔️ Poll", "color": "972255", "description": "Community polls" }
86+
{ "name": "✔️ Poll", "color": "972255", "description": "Community polls" },
8687
{ "name": "❔ Question", "color": "FFFFFF", "description": "All questions" }
8788
]
8889

.github/workflows/release.yml

Lines changed: 53 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
1+
# ---------------------------------------------------------------------------------------
2+
# @parent : github workflow
3+
# @desc : publish release to github
4+
# @author : Aetherinox
5+
# @url : https://github.com/Aetherinox
6+
# ---------------------------------------------------------------------------------------
7+
18
name: "📦 Publish › Snippets"
29
run-name: "📦 Publish › Snippets"
310

11+
# ---------------------------------------------------------------------------------------
12+
# triggers
13+
# ---------------------------------------------------------------------------------------
14+
415
on:
516
workflow_dispatch:
617
inputs:
@@ -63,6 +74,10 @@ on:
6374
type: string
6475
default: "1"
6576

77+
# ---------------------------------------------------------------------------------------
78+
# jobs
79+
# ---------------------------------------------------------------------------------------
80+
6681
jobs:
6782

6883
# ---------------------------------------------------------------------------------------
@@ -74,12 +89,16 @@ jobs:
7489
📦 Publish › Initialize
7590
runs-on: ubuntu-latest
7691
outputs:
77-
package_version: ${{ steps.task_initialize_package_getversion.outputs.PACKAGE_VERSION }}
92+
package_version: ${{ steps.task_initialize_package_version.outputs.PACKAGE_VERSION }}
7893
permissions:
7994
contents: write
8095
packages: write
8196
steps:
8297

98+
# ---------------------------------------------------------------------------------------
99+
# Job > Initialize > Start
100+
# ---------------------------------------------------------------------------------------
101+
83102
- name: "✅ Start"
84103
id: task_initialize_start
85104
run: |
@@ -96,19 +115,24 @@ jobs:
96115
fetch-depth: 0
97116

98117
# ---------------------------------------------------------------------------------------
118+
# Package Version > Set
99119
# Get version from package.json VERSION value
100120
# ---------------------------------------------------------------------------------------
101121

102-
- name: "👁️‍🗨️ Get Package Version"
103-
id: task_initialize_package_getversion
122+
- name: "👁️‍🗨️ Package Version › Get"
123+
id: task_initialize_package_version
104124
run: |
105125
VER=$(cat package.json | jq -r '.version')
106126
echo "PACKAGE_VERSION=$VER" >> $GITHUB_OUTPUT
107127
108-
- name: "👁️‍🗨️ Get Package Version › Print"
109-
id: task_initialize_package_getversion_debug
128+
# ---------------------------------------------------------------------------------------
129+
# Package Version > Print (Debug)
130+
# ---------------------------------------------------------------------------------------
131+
132+
- name: "👁️‍🗨️ Package Version › Print"
133+
id: task_initialize_package_version_print
110134
run: |
111-
echo "VERSION: ${{ steps.task_initialize_package_getversion.outputs.PACKAGE_VERSION }}"
135+
echo "VERSION: ${{ steps.task_initialize_package_version.outputs.PACKAGE_VERSION }}"
112136
113137
# ---------------------------------------------------------------------------------------
114138
# Job > Release > Github
@@ -164,21 +188,25 @@ jobs:
164188
npm run obs:generate
165189
166190
# ---------------------------------------------------------------------------------------
167-
# Get guid and uuid from env variable
168-
# generated by npm
191+
# .ENV > Get
192+
# Get guid and uuid from env variable generated by npm
169193
# ---------------------------------------------------------------------------------------
170194

171195
- name: "🪪 .ENV › Get"
172196
id: task_release_dotenv_get
173197
uses: falti/dotenv-action@v1
174198

199+
# ---------------------------------------------------------------------------------------
200+
# .ENV > Print (Debug)
201+
# Show guid and uuid from env variable generated by npm
202+
# ---------------------------------------------------------------------------------------
203+
175204
- name: "🪪 .ENV › Read"
176205
id: task_dotenv_debug_print
177206
run: |
178207
echo "GUID: ${{ steps.task_release_dotenv_get.outputs.GUID }}"
179208
echo "UUID: ${{ steps.task_release_dotenv_get.outputs.UUID }}"
180209
181-
182210
# ---------------------------------------------------------------------------------------
183211
# Build Project & Create Zip
184212
# ---------------------------------------------------------------------------------------
@@ -193,7 +221,7 @@ jobs:
193221
env:
194222
NODE_AUTH_TOKEN: ${{ secrets.ADMINSERV_TOKEN_CL }}
195223

196-
- name: "🔨 Build › Release Candidate ( ${{ inputs.PLUGIN_NAME }}-${{ env.PACKAGE_VERSION }}-rc.${{ inputs.VERSION_RC }}.zip )"
224+
- name: "🔨 Build › RC ( ${{ inputs.PLUGIN_NAME }}-${{ env.PACKAGE_VERSION }}-rc.${{ inputs.VERSION_RC }}.zip )"
197225
id: task_release_build_rc
198226
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
199227
run: |
@@ -223,6 +251,8 @@ jobs:
223251

224252
# ---------------------------------------------------------------------------------------
225253
# [ Tag ]: Confirm
254+
#
255+
# check if tag already exists
226256
# ---------------------------------------------------------------------------------------
227257

228258
- name: "🔖 Tag › Confirm ${{ env.PACKAGE_VERSION }}"
@@ -232,7 +262,7 @@ jobs:
232262
echo "Tag already present: ${{ steps.task_release_tag_create.outputs.tag_exists }}"
233263
234264
# ---------------------------------------------------------------------------------------
235-
# [ Release Candidate ]: Checksum
265+
# Checksum > Generate
236266
# ---------------------------------------------------------------------------------------
237267

238268
- name: "🆔 Checksum › Stable"
@@ -245,7 +275,7 @@ jobs:
245275
echo "FILE_ZIP=${filename_zip}" >> $GITHUB_ENV
246276
echo "SHA256SUM=${sha256}" >> $GITHUB_ENV
247277
248-
- name: "🆔 Checksum › Release Candidate"
278+
- name: "🆔 Checksum › RC"
249279
id: task_release_checksum_rc_set
250280
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
251281
run: |
@@ -255,6 +285,10 @@ jobs:
255285
echo "FILE_ZIP=${filename_zip}" >> $GITHUB_ENV
256286
echo "SHA256SUM=${sha256}" >> $GITHUB_ENV
257287
288+
# ---------------------------------------------------------------------------------------
289+
# Checksum > Print
290+
# ---------------------------------------------------------------------------------------
291+
258292
- name: "🆔 Checksum › Print"
259293
id: task_release_checksum_st_get
260294
run: |
@@ -273,7 +307,7 @@ jobs:
273307
avatarSize: 42
274308

275309
# ---------------------------------------------------------------------------------------
276-
# [ ZIP ] : Stable
310+
# Checksum > Add to ZIP file
277311
# ---------------------------------------------------------------------------------------
278312

279313
- name: "📦 Zip › Add Checksum › Stable"
@@ -284,7 +318,7 @@ jobs:
284318
zip -jr ${{ inputs.PLUGIN_NAME }}-${{ env.PACKAGE_VERSION }}.zip SHA256SUMS.txt
285319
ls
286320
287-
- name: "📦 Zip › Add Checksum › Release Candidate"
321+
- name: "📦 Zip › Add Checksum › RC"
288322
id: task_release_zip_rc
289323
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
290324
run: |
@@ -293,7 +327,7 @@ jobs:
293327
ls
294328
295329
# ---------------------------------------------------------------------------------------
296-
# Generate Changelog
330+
# Changelog > Generate
297331
#
298332
# generates a changelog from the github api. requires a PREVIOUS_TAG in order to figure
299333
# out the changes made between the two versions.
@@ -323,7 +357,7 @@ jobs:
323357
fetchViaCommits: true
324358
configurationJson: |
325359
{
326-
"template": "## Release Info <sup>(${{ steps.task_release_dotenv_get.outputs.UUID }})</sup>\n- <sub>**Version began on**: <sub>........</sub>`#{{FROM_TAG_DATE}}`</sub>\n- <sub>**SHA256**: <sub>................................</sub>`${{ env.SHA256SUM }} 🔺 ${{ env.FILE_ZIP }}`</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>Commits : <b>#{{COMMITS}}</b> </li><li>Additions : <b>#{{ADDITIONS}}</b></li><li>Deletions : <b>#{{DELETIONS}}</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"
360+
"template": "## Release Info <sup>(${{ steps.task_release_dotenv_get.outputs.UUID }})</sup>\n| Item | Value |\n| --- | --- |\n|<sub>SHA256</sub>|<sub>${{ env.SHA256SUM }} 🔺 ${{ env.FILE_ZIP }}</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>Commits : <b>#{{COMMITS}}</b> </li><li>Additions : <b>#{{ADDITIONS}}</b></li><li>Deletions : <b>#{{DELETIONS}}</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"
327361
}
328362
env:
329363
GITHUB_TOKEN: ${{ secrets.ADMINSERV_TOKEN }}
@@ -349,13 +383,13 @@ jobs:
349383
fetchViaCommits: true
350384
configurationJson: |
351385
{
352-
"template": "## Release Info <sup>(${{ steps.task_release_dotenv_get.outputs.UUID }})</sup>\n- <sub>**Version began on**: <sub>........</sub>`#{{FROM_TAG_DATE}}`</sub>\n- <sub>**SHA256**: <sub>................................</sub>`${{ env.SHA256SUM }} 🔺 ${{ env.FILE_ZIP }}`</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`\n</sup>\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>Commits : <b>#{{COMMITS}}</b> </li><li>Additions : <b>#{{ADDITIONS}}</b></li><li>Deletions : <b>#{{DELETIONS}}</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---\n\n<br>\n\n"
386+
"template": "## Release Info <sup>(${{ steps.task_release_dotenv_get.outputs.UUID }})</sup>\n| Item | Value |\n| --- | --- |\n|<sub>SHA256</sub>|<sub>${{ env.SHA256SUM }} 🔺 ${{ env.FILE_ZIP }}</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>Commits : <b>#{{COMMITS}}</b> </li><li>Additions : <b>#{{ADDITIONS}}</b></li><li>Deletions : <b>#{{DELETIONS}}</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---\n\n<br>\n\n"
353387
}
354388
env:
355389
GITHUB_TOKEN: ${{ secrets.ADMINSERV_TOKEN }}
356390

357391
# ---------------------------------------------------------------------------------------
358-
# Fetch Changelog
392+
# Changelog > Fetch
359393
# ---------------------------------------------------------------------------------------
360394

361395
- name: "📝 Changelog › Print (Categorized)"
@@ -398,7 +432,7 @@ jobs:
398432
${{ steps.task_release_changelog_categorized.outputs.changelog }}
399433
${{ steps.task_release_changelog_uncategorized.outputs.changelog }}
400434
401-
- name: "🏳️ Post › Release Candidate"
435+
- name: "🏳️ Post › RC"
402436
if: ${{ startsWith( inputs.PRERELEASE, true ) }}
403437
uses: softprops/action-gh-release@v2
404438
id: task_release_bundle_rc

0 commit comments

Comments
 (0)