Skip to content

Commit

Permalink
Merge pull request #10 from 06chaynes/develop
Browse files Browse the repository at this point in the history
v0.1.0
  • Loading branch information
06chaynes authored Nov 3, 2023
2 parents 9e8cbc7 + ee8e542 commit 0745b9b
Show file tree
Hide file tree
Showing 42 changed files with 1,587 additions and 270 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,40 @@ 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: "06chaynes/homebrew-tfct"
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]
Expand Down
Loading

0 comments on commit 0745b9b

Please sign in to comment.