ci(changelog): add changelog to deployment notification
authorxangelo <me@xangelo.ca>
Thu, 5 Dec 2024 21:55:16 +0000 (16:55 -0500)
committerxangelo <me@xangelo.ca>
Thu, 5 Dec 2024 21:55:16 +0000 (16:55 -0500)
.github/workflows/deploy.yml
package.json

index 0edd358402f7467ceba4d9dfeca19eb4f27cd1e6..db36eccebd256999a48a35702899a218799ad4aa 100644 (file)
@@ -16,7 +16,7 @@ jobs:
     
     - name: Setup Node.js
       uses: actions/setup-node@v3
-      with:
+      with: 
         node-version: '18.7.0'
         cache: 'npm'
     
@@ -37,10 +37,9 @@ jobs:
         DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
       with:
         args: |
-          ðŸš€ New deployment to Digital Ocean completed!
+          ðŸš€ New Version Deployed!
           
           Changes in this deployment:
-          ${{ join(github.event.commits.*.message, '\n') }}
-          
-          Deployed by: ${{ github.actor }}
-    
\ No newline at end of file
+          - ${{ join(github.event.commits.*.message, '\\n- ') }}
+
+          Full changelog: https://risinglegends.net/changelog
\ No newline at end of file
index 2d669a069f31940cdd246aaa81a5f46d53da020c..82b303c7ffd401249d5f14595063a988bbfee2d8 100644 (file)
@@ -5,7 +5,7 @@
   "scripts": {
     "start": "TS_NODE_BASEURL=./dist node -r tsconfig-paths/register dist/src/server/api.js",
     "build": "npx tsc && npx webpack",
-    "postbuild": "cp -R public dist/",
+    "postbuild": "cp -R public dist/ && cp CHANGELOG.md dist/",
     "migrate": "npx ts-node ./node_modules/knex/bin/cli.js migrate:latest",
     "migrate:prod": "NODE_ENV=production npx ts-node ./node_modules/knex/bin/cli.js migrate:latest",
     "seed": "npx ts-node ./node_modules/knex/bin/cli.js seed:run",