-
Notifications
You must be signed in to change notification settings - Fork 0
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
e28dc10
commit 2d818bd
Showing
3 changed files
with
5 additions
and
43 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 |
---|---|---|
|
@@ -173,40 +173,6 @@ jobs: | |
- name: print tag | ||
run: echo "ok we're publishing!" | ||
|
||
publish-homebrew-formula: | ||
needs: [plan, should-publish] | ||
runs-on: "ubuntu-20.04" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PLAN: ${{ needs.plan.outputs.val }} | ||
GITHUB_USER: "axo bot" | ||
GITHUB_EMAIL: "[email protected]" | ||
if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: "FNNDSC/homebrew-mni2mz3" | ||
token: ${{ secrets.HOMEBREW_TAP_TOKEN }} | ||
# So we have access to the formula | ||
- name: Fetch local artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: artifacts | ||
path: Formula/ | ||
- name: Commit formula files | ||
run: | | ||
git config --global user.name "${GITHUB_USER}" | ||
git config --global user.email "${GITHUB_EMAIL}" | ||
for release in $(echo "$PLAN" | jq --compact-output '.releases[]'); do | ||
name=$(echo "$release" | jq .app_name --raw-output) | ||
version=$(echo "$release" | jq .app_version --raw-output) | ||
git add Formula/${name}.rb | ||
git commit -m "${name} ${version}" | ||
done | ||
git push | ||
# Create a Github Release with all the results once everything is done | ||
publish-release: | ||
needs: [plan, should-publish] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,6 +1,6 @@ | ||
[package] | ||
name = "mni2mz3" | ||
version = "0.1.0-rc.1" | ||
version = "0.1.0-rc.2" | ||
edition = "2021" | ||
|
||
authors = ["Jennings Zhang <[email protected]>"] | ||
|
@@ -43,18 +43,14 @@ cargo-dist-version = "0.4.2" | |
# CI backends to support | ||
ci = ["github"] | ||
# The installers to generate for each app | ||
installers = ["shell", "powershell", "npm", "homebrew"] | ||
# A GitHub repo to push Homebrew formulas to | ||
tap = "FNNDSC/homebrew-mni2mz3" | ||
installers = ["shell", "powershell", "npm"] | ||
# Target platforms to build apps for (Rust target-triple syntax) | ||
targets = ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"] | ||
# The archive format to use for windows builds (defaults .zip) | ||
windows-archive = ".tar.gz" | ||
windows-archive = ".zip" | ||
# The archive format to use for non-windows builds (defaults .tar.xz) | ||
unix-archive = ".tar.gz" | ||
# Publish jobs to run in CI | ||
publish-jobs = ["homebrew"] | ||
# Publish jobs to run in CI | ||
pr-run-mode = "skip" | ||
|
||
# Whether to publish prereleases to package managers | ||
publish-prereleases = true |