diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..bc8c4990 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Unit Tests + +on: [push] + +jobs: + frontend-tests: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20.x + - name: Install dependencies + working-directory: ${{github.workspace}}/frontend + run: yarn --frozen-lockfile + - name: compile client + working-directory: ${{github.workspace}}/frontend + run: yarn build + - name: package code + working-directory: ${{github.workspace}}/frontend/static + run: zip -r ../../frontend-build.zip . + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: frontend-build.zip