Skip to content
/ martin Public
forked from maplibre/martin

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Oct 12, 2023
1 parent 0f89511 commit 81ab08a
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
name: Homebrew

on: [pull_request]
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths-ignore:
- '**.md'
- 'demo/**'
- 'docs/**'
release:
types: [ published ]
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
test:
runs-on: macos-latest
runs-on: ubuntu-latest

steps:
- run: brew --version
- run: brew tap maplibre/martin
- run: brew install martin
# - run: brew --version
# - run: brew tap maplibre/martin
# - run: brew install martin

- name: Checkout maplibre/homebrew-martin
# if: startsWith(github.ref, 'refs/tags/')
Expand Down Expand Up @@ -39,15 +54,15 @@ jobs:
EOF
- name: Create Homebrew formula
# if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
uses: cuchi/[email protected]
with:
template: .github/templates/homebrew.martin.rb.j2
output_file: target/homebrew/martin.rb
data_file: target/homebrew_config.yaml

- name: Create a PR for maplibre/homebrew-martin
# if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_HOMEBREW_MARTIN_TOKEN }}
Expand Down

0 comments on commit 81ab08a

Please sign in to comment.