From 9ab0872558d5a0c2293cc8f4b838ae1406de1ec1 Mon Sep 17 00:00:00 2001 From: xangelo Date: Thu, 5 Dec 2024 16:55:16 -0500 Subject: [PATCH] ci(changelog): add changelog to deployment notification --- .github/workflows/deploy.yml | 11 +++++------ package.json | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0edd358..db36ecc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/package.json b/package.json index 2d669a0..82b303c 100644 --- a/package.json +++ b/package.json @@ -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", -- 2.25.1