From: xangelo Date: Thu, 5 Dec 2024 21:55:16 +0000 (-0500) Subject: ci(changelog): add changelog to deployment notification X-Git-Tag: v0.4.4~8 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=9ab0872558d5a0c2293cc8f4b838ae1406de1ec1;p=risinglegends.git ci(changelog): add changelog to deployment notification --- 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",