-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30f56df
commit 223ef06
Showing
7 changed files
with
98 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish Ignite to HomeBrew | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
homebrew: | ||
name: Bump Homebrew formula | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Extract version | ||
id: extract-version | ||
# Strip a string prefix from the git tag name: | ||
run: | | ||
echo "tag-name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | ||
- uses: mislav/bump-homebrew-formula-action@v3 | ||
with: | ||
formula-name: ignite | ||
formula-path: Formula/i/ignite.rb | ||
homebrew-tap: Homebrew/homebrew-core | ||
base-branch: master | ||
download-url: https://github.com/ignite/cli/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz | ||
env: | ||
# the personal access token should have "repo" & "workflow" scopes | ||
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }} |
2 changes: 1 addition & 1 deletion
2
.github/workflows/snapcraft.yml → .github/workflows/release-snapcraft.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Publish snap package | ||
name: Publish Ignite to Snapcraft | ||
|
||
on: | ||
release: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class Ignite < Formula | ||
desc "Build, launch, and maintain any crypto application with Ignite CLI" | ||
homepage "https://github.com/ignite/cli" | ||
url "https://github.com/ignite/cli/archive/refs/tags/v28.2.0.tar.gz" | ||
sha256 "556f953fd7f922354dea64e7b3dade5dd75b3f62ece93167e2ba126cac27602e" | ||
license "Apache-2.0" | ||
|
||
depends_on "go" | ||
depends_on "node" | ||
|
||
def install | ||
system "go", "build", "-mod=readonly", *std_go_args(output: bin/"ignite"), "./ignite/cmd/ignite" | ||
end | ||
|
||
test do | ||
ENV["DO_NOT_TRACK"] = "1" | ||
system bin/"ignite", "s", "chain", "mars" | ||
assert_predicate testpath/"mars/go.mod", :exist? | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters