From 77f49386d899617bf989408caa735291644249a3 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Fri, 19 Nov 2021 08:18:15 +0500 Subject: [PATCH] chore: publish releases on github --- .github/workflows/release.yml | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..59bf77e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,47 @@ +name: SASjs Server Executable Release + +on: + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install Dependencies WEB + working-directory: ./web + run: npm ci + + - name: Build WEB + working-directory: ./web + run: npm run build + env: + CI: true + + - name: Install Dependencies API + working-directory: ./api + run: npm ci + + - name: Build Executables + working-directory: ./api + run: npm run exe + env: + CI: true + + -name: Create Tag with Release + - uses: Klemensas/action-autotag@stable + with: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + ./executables/api-linux + ./executables/api-macos + ./executables/api-win.exe + token: ${{ secrets.GH_TOKEN }}