diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1045f7..5cc155d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,18 +11,20 @@ jobs: steps: - name: Download Linux build uses: actions/download-artifact@v3 + if: startsWith(github.ref, 'refs/tags/') with: - name: linux.zip + name: ds-api-client-linux - name: Download macOS build uses: actions/download-artifact@v3 + if: startsWith(github.ref, 'refs/tags/') with: - name: macos.zip + name: ds-api-client-macos - name: Release uses: ncipollo/release-action@v1 if: startsWith(github.ref, 'refs/tags/') with: generateReleaseNotes: true - artifacts: linux.zip, macos.zip + artifacts: "ds-api-client-linux, ds-api-client-macos" artifactErrorsFailBuild: true build-linux: runs-on: ubuntu-latest @@ -31,11 +33,11 @@ jobs: - uses: oven-sh/setup-bun@v1 - run: bun install - run: bun run compile - - run: zip -r linux ds-api-client - name: Archive production artifacts uses: actions/upload-artifact@v3 with: - path: linux.zip + name: ds-api-client-linux + path: ds-api-client build-macos: runs-on: macos-latest steps: @@ -43,8 +45,8 @@ jobs: - uses: oven-sh/setup-bun@v1 - run: bun install - run: bun run compile - - run: zip -r macos ds-api-client - name: Archive production artifacts uses: actions/upload-artifact@v3 with: - path: macos.zip + name: ds-api-client-macos + path: ds-api-client