diff --git a/.circleci/config.yml b/.circleci/config.yml index 55d0c4c8f..4338c7937 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -97,6 +97,7 @@ commands: sudo bash install.sh popd rm -rf kubo + rm kubo_v0.16.0_linux-amd64.tar.gz git_fetch_all_tags: steps: - run: @@ -384,13 +385,13 @@ jobs: - when: condition: << parameters.dry-run >> steps: - - run: goreleaser release --rm-dist --snapshot + - run: goreleaser release --rm-dist --snapshot --debug - run: ./scripts/generate-checksums.sh - when: condition: not: << parameters.dry-run >> steps: - - run: goreleaser release --rm-dist + - run: goreleaser release --rm-dist --debug - run: ./scripts/generate-checksums.sh - run: ./scripts/publish-checksums.sh @@ -1143,6 +1144,8 @@ workflows: - /^v\d+\.\d+\.\d+(-rc\d+)?$/ - release: name: "Release" + context: + - filecoin-goreleaser-key requires: - "Build ( darwin / amd64 )" - "Build ( linux / amd64 )" @@ -1156,6 +1159,8 @@ workflows: - /^v\d+\.\d+\.\d+(-rc\d+)?$/ - release: name: "Release (dry-run)" + context: + - filecoin-goreleaser-key dry-run: true requires: - "Build ( darwin / amd64 )" diff --git a/.circleci/template.yml b/.circleci/template.yml index 48542b2b9..62daa347c 100644 --- a/.circleci/template.yml +++ b/.circleci/template.yml @@ -97,6 +97,7 @@ commands: sudo bash install.sh popd rm -rf kubo + rm kubo_v0.16.0_linux-amd64.tar.gz git_fetch_all_tags: steps: - run: @@ -384,13 +385,13 @@ jobs: - when: condition: << parameters.dry-run >> steps: - - run: goreleaser release --rm-dist --snapshot + - run: goreleaser release --rm-dist --snapshot --debug - run: ./scripts/generate-checksums.sh - when: condition: not: << parameters.dry-run >> steps: - - run: goreleaser release --rm-dist + - run: goreleaser release --rm-dist --debug - run: ./scripts/generate-checksums.sh - run: ./scripts/publish-checksums.sh @@ -838,6 +839,8 @@ workflows: - /^v\d+\.\d+\.\d+(-rc\d+)?$/ - release: name: "Release" + context: + - filecoin-goreleaser-key requires: - "Build ( darwin / amd64 )" - "Build ( linux / amd64 )" @@ -851,6 +854,8 @@ workflows: - /^v\d+\.\d+\.\d+(-rc\d+)?$/ - release: name: "Release (dry-run)" + context: + - filecoin-goreleaser-key dry-run: true requires: - "Build ( darwin / amd64 )" diff --git a/.goreleaser.yaml b/.goreleaser.yaml index fea3191d8..021945acf 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -13,6 +13,7 @@ universal_binaries: builds: - id: lotus + binary: lotus builder: prebuilt goos: - darwin @@ -28,6 +29,7 @@ builds: prebuilt: path: /tmp/workspace/{{ .Os }}_{{ .Arch }}{{ with .Amd64 }}_{{ . }}{{ end }}/lotus - id: lotus-miner + binary: lotus-miner builder: prebuilt goos: - darwin @@ -43,6 +45,7 @@ builds: prebuilt: path: /tmp/workspace/{{ .Os }}_{{ .Arch }}{{ with .Amd64 }}_{{ . }}{{ end }}/lotus-miner - id: lotus-worker + binary: lotus-worker builder: prebuilt goos: - darwin diff --git a/scripts/build-appimage-bundle.sh b/scripts/build-appimage-bundle.sh index d99b459b9..d4ce6de77 100755 --- a/scripts/build-appimage-bundle.sh +++ b/scripts/build-appimage-bundle.sh @@ -20,7 +20,7 @@ PID="$!" trap "kill -9 ${PID}" EXIT sleep 30 -cp "../appimage/Lotus-${CIRCLE_TAG}-x86_64.AppImage" . +cp "/tmp/workspace/appimage/Lotus-${CIRCLE_TAG}-x86_64.AppImage" . sha512sum "Lotus-${CIRCLE_TAG}-x86_64.AppImage" > "Lotus-${CIRCLE_TAG}-x86_64.AppImage.sha512" ipfs add -q "Lotus-${CIRCLE_TAG}-x86_64.AppImage" > "Lotus-${CIRCLE_TAG}-x86_64.AppImage.cid" popd