diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d6a00b0..99569d7c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,8 +51,12 @@ jobs: - uses: actions/upload-artifact@v4 if: matrix.node-version == 16 with: - name: "server-files" + name: "server" path: | + source/server/dist/* + !source/server/dist/*.test.js + !source/server/dist/*.test.js.map + !source/server/dist/__test_fixtures/** source/server/package.json source/server/package-lock.json source/server/migrations/ @@ -71,18 +75,13 @@ jobs: - name: edit run scripts working-directory: eCorpus-unpacked run: | - jq '.scripts.start ="node server/index.js"' ./server-files/package.json > "package.json" - rm server-files/package.json - mv server-files/* ./ - rm -r server-files - - name: make tarball - working-directory: eCorpus-unpacked - run: | - tar -zcf ../eCorpus-${{github.ref_name}}.tgz ./* + rm server/package.json + mv server/* ./ + rm -r server - uses: actions/upload-artifact@v4 with: - name: "dist" - path: "eCorpus-*.tgz" + name: "eCorpus-${{github.ref_name}}" + path: eCorpus-unpacked/* if-no-files-found: error retention-days: 10 \ No newline at end of file