diff --git a/.gitea/workflows/gitea-ci.yml b/.gitea/workflows/gitea-ci.yml index fd5722a..a980ea2 100644 --- a/.gitea/workflows/gitea-ci.yml +++ b/.gitea/workflows/gitea-ci.yml @@ -17,7 +17,8 @@ jobs: echo $PWD ls . - - name: Cache node_modules + - name: Restore node_modules + id: cache-node uses: actions/cache@v4 with: path: node_modules @@ -25,12 +26,26 @@ jobs: restore-keys: | yarn-cache- + - name: Restore dist + id: cache-dist + uses: actions/cache@v4 + with: + path: dist + key: dist-cache-${{ github.ref_name }}-${{ hashFiles('**/*.ts') }} + - name: Install Dependencies with yarn + if: steps.cache-node.outputs.cache-hit != 'true' run: | yarn install --immutable ls . - name: Build Nestjs project + if: steps.cache-dist.outputs.cache-hit != 'true' run: | yarn build - ls . \ No newline at end of file + ls . + + - name: Deploy dist + run: | + cp dist $DOCKER_VOLUME/scheduler/back/ + ls $DOCKER_VOLUME/scheduler/back \ No newline at end of file