From 8b7ac3ba4637b68ccf4ce5cc9ad942777b51a120 Mon Sep 17 00:00:00 2001 From: arnabghose997 Date: Fri, 17 Feb 2023 18:54:20 +0530 Subject: [PATCH 1/2] added working-directory directive --- .github/workflows/build-server.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-server.yml b/.github/workflows/build-server.yml index 4a408ac..f865768 100644 --- a/.github/workflows/build-server.yml +++ b/.github/workflows/build-server.yml @@ -16,6 +16,11 @@ jobs: uses: actions/setup-node@v3 with: node-version: 14 + + - name: Install Packages + run: npm i + working-directory: server - - name: Build Studio Server - run: cd server && npm i && npm run build + - name: Build Server + run: npm run build + working-directory: server From 396608a5c046bdc74430f34c172a1088d908e9d1 Mon Sep 17 00:00:00 2001 From: arnabghose997 Date: Fri, 17 Feb 2023 19:16:11 +0530 Subject: [PATCH 2/2] added release workflow --- .github/workflows/release-server.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release-server.yml diff --git a/.github/workflows/release-server.yml b/.github/workflows/release-server.yml new file mode 100644 index 0000000..8d9f0a1 --- /dev/null +++ b/.github/workflows/release-server.yml @@ -0,0 +1,26 @@ +name: Studio Server Release Workflow + +on: + push: + tags: + - "[0-9]+.[0-9]+.[0-9]+" + - "[0-9]+.[0-9]+.[0-9]-rc.[0-9]+" + +permissions: + contents: write + packages: write + +jobs: + release-github: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Release + uses: softprops/action-gh-release@v1 + with: + prerelease: false + generate_release_notes: true