From 457c0b1e9d66eb76ee5bf69dc2abfc67b933c243 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Mon, 16 Aug 2021 23:42:21 +0200 Subject: :bug: pre release script --- .github/workflows/release.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c99e15c0..d989a876 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,13 +14,32 @@ jobs: os: [windows, macos, ubuntu] include: - os: windows - build: npx caxa -i .. -m 'This_may_take_a_while_to_run_the_first_time_please_wait...' --output 'fosscord-server-windows.exe' -- "cd bundle" "del /F /S /Q node_modules/@fosscord" "mklink /D node_modules/@fosscord/api ../api" "mklink /D node_modules/@fosscord/cdn ../cdn" "mklink /D node_modules/@fosscord/gateway ../gateway" "mklink /D node_modules/@fosscord/util ../util" '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' + pre: | + cd bundle + del /F /S /Q node_modules/@fosscord + mklink /D node_modules/@fosscord/api ../api + mklink /D node_modules/@fosscord/cdn ../cdn + mklink /D node_modules/@fosscord/gateway ../gateway + mklink /D node_modules/@fosscord/util ../util + build: npx caxa -i .. -m 'This_may_take_a_while_to_run_the_first_time_please_wait...' --output 'fosscord-server-windows.exe' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' artifact: fosscord-server-windows.exe - os: macos - build: npx caxa -i .. -m 'This may take a while to run the first time, please wait...' --output 'fosscord-server.app' -- cd bundle && ln -sf node_modules/@fosscord/api ../api && ln -sf node_modules/@fosscord/cdn ../cdn && ln -sf node_modules/@fosscord/gateway ../gateway && ln -sf node_modules/@fosscord/util ../util && '{{caxa}}/node_modules/.bin/node' '{{caxa}}/bundle/dist/start.js' && tar -czf 'fosscord-server-macos.app.tgz' 'fosscord-server.app' + pre: | + cd bundle + ln -sf node_modules/@fosscord/api ../api + ln -sf node_modules/@fosscord/cdn ../cdn + ln -sf node_modules/@fosscord/gateway ../gateway + ln -sf node_modules/@fosscord/util ../util + build: npx caxa -i .. -m 'This may take a while to run the first time, please wait...' --output 'fosscord-server.app' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/bundle/dist/start.js' && tar -czf 'fosscord-server-macos.app.tgz' 'fosscord-server.app' artifact: fosscord-server-macos.app.tgz - os: ubuntu - build: npx caxa -i .. -m 'This may take a while to run the first time, please wait...' --output 'fosscord' -- cd bundle && ln -sf node_modules/@fosscord/api ../api && ln -sf node_modules/@fosscord/cdn ../cdn && ln -sf node_modules/@fosscord/gateway ../gateway && ln -sf node_modules/@fosscord/util ../util && '{{caxa}}/node_modules/.bin/node' '{{caxa}}/bundle/dist/start.js' && tar -czf 'fosscord-server-linux.tgz' 'fosscord' + pre: | + cd bundle + ln -sf node_modules/@fosscord/api ../api + ln -sf node_modules/@fosscord/cdn ../cdn + ln -sf node_modules/@fosscord/gateway ../gateway + ln -sf node_modules/@fosscord/util ../util + build: npx caxa -i .. -m 'This may take a while to run the first time, please wait...' --output 'fosscord' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/bundle/dist/start.js' && tar -czf 'fosscord-server-linux.tgz' 'fosscord' artifact: fosscord-server-linux.tgz runs-on: ${{ matrix.os }}-latest steps: @@ -37,6 +56,7 @@ jobs: npm install npm i caxa npm run build + ${{ matrix.pre }} ${{ matrix.build }} - uses: actions/upload-artifact@v2 with: -- cgit 1.4.1