Skip to content

Commit 3a2bd5b

Browse files
authored
Remove homebrew step and skip scratch compilation during cargo publish (#678)
1 parent 7150119 commit 3a2bd5b

1 file changed

Lines changed: 3 additions & 35 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ on:
1717
required: false
1818
type: boolean
1919
default: false
20-
skip_homebrew:
21-
description: "Skip Homebrew PR"
22-
required: false
23-
type: boolean
24-
default: false
25-
2620
env:
2721
CARGO_TERM_COLOR: always
2822

@@ -270,23 +264,20 @@ jobs:
270264
- name: Publish cfn-guard
271265
run: |
272266
cd guard
273-
cargo publish --dry-run
274-
cargo publish || echo "::warning::cfn-guard publish failed (may already be published)"
267+
cargo publish --no-verify || echo "::warning::cfn-guard publish failed (may already be published)"
275268
276269
- name: Wait for crates.io index
277270
run: sleep 30
278271

279272
- name: Publish cfn-guard-lambda
280273
run: |
281274
cd guard-lambda
282-
cargo publish --dry-run
283-
cargo publish || echo "::warning::cfn-guard-lambda publish failed (may already be published)"
275+
cargo publish --no-verify || echo "::warning::cfn-guard-lambda publish failed (may already be published)"
284276
285277
- name: Publish cfn-guard-ffi
286278
run: |
287279
cd guard-ffi
288-
cargo publish --dry-run
289-
cargo publish || echo "::warning::cfn-guard-ffi publish failed (may already be published)"
280+
cargo publish --no-verify || echo "::warning::cfn-guard-ffi publish failed (may already be published)"
290281
291282
# ---------------------------------------------------------------------------
292283
# 6. Publish Docker to ECR Public
@@ -333,26 +324,3 @@ jobs:
333324
docker push "$PREFIX:$VERSION"
334325
docker push "$PREFIX:latest"
335326
336-
# ---------------------------------------------------------------------------
337-
# 7. Open Homebrew PR
338-
# ---------------------------------------------------------------------------
339-
publish-homebrew:
340-
name: Homebrew PR
341-
needs: [validate, github-release]
342-
if: ${{ !inputs.dry_run && !inputs.skip_homebrew }}
343-
runs-on: macos-latest
344-
env:
345-
VERSION: ${{ needs.validate.outputs.version }}
346-
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
347-
steps:
348-
- name: Update Homebrew & open PR
349-
run: |
350-
brew update
351-
TARBALL_URL="https://github.com/aws-cloudformation/cloudformation-guard/archive/refs/tags/${VERSION}.tar.gz"
352-
curl -fsSL "$TARBALL_URL" -o guard.tar.gz
353-
SHA256=$(shasum -a 256 guard.tar.gz | awk '{print $1}')
354-
brew bump-formula-pr \
355-
--url "$TARBALL_URL" \
356-
--sha256 "$SHA256" \
357-
--no-browse \
358-
cloudformation-guard

0 commit comments

Comments
 (0)