diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ae3d4f..ffbcb58 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,9 @@ jobs: run: bun install --frozen-lockfile - name: ๐Ÿ”จ Compile binary for supported platforms - run: task build-and-compress + run: | + task build + task compress - name: ๐Ÿš€ Run new version for production run: npx release-it --ci diff --git a/.github/workflows/s3-upload.yml b/.github/workflows/s3-upload.yml index 88e579e..df5a83d 100644 --- a/.github/workflows/s3-upload.yml +++ b/.github/workflows/s3-upload.yml @@ -37,11 +37,10 @@ jobs: - name: ๐Ÿ“ฆ Install package dependencies using lockfile run: bun install --frozen-lockfile - - name: ๐Ÿ”จ Run build - run: bun run build - - name: ๐Ÿ”จ Compile binary for supported platforms - run: task build-and-compress + run: | + task build + task compress - name: ๐Ÿš€ Upload binaries to S3 run: aws s3 cp ./dist ${BUCKET}/${NAME} --acl public-read diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 651a7a3..5dfbc0b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -32,8 +32,8 @@ jobs: - name: ๐Ÿ”จ Compile binary for supported platforms run: | - mkdir -p ./dist/ - task build-and-compress + task build + task compress - name: ๐Ÿงช Run tests run: bun run test diff --git a/taskfile.yaml b/taskfile.yaml index 5381ba0..bfd41f8 100644 --- a/taskfile.yaml +++ b/taskfile.yaml @@ -68,7 +68,3 @@ tasks: cmd: | echo "Compressing {{.ITEM}} binary..." tar -czvf ./dist/$PROJECT-{{.ITEM}}.tar.gz -C ./dist/ $PROJECT-{{.ITEM}} - - build-and-compress: - desc: "Build and compress binaries for all platforms" - deps: [build, compress]