homebrew.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: Build Homebrew package
  2. on:
  3. workflow_dispatch:
  4. push:
  5. jobs:
  6. build:
  7. runs-on: macos-latest
  8. steps:
  9. - uses: actions/checkout@v2
  10. with:
  11. submodules: true
  12. fetch-depth: 1
  13. # TODO: modify archivebox.rb to update src url, hashes, and dependencies
  14. - name: Build Homebrew Bottle
  15. run: |
  16. pip3 install --upgrade pip setuptools wheel
  17. cd brew_dist/
  18. brew install --build-bottle ./archivebox.rb
  19. # brew bottle archivebox
  20. - name: Add some links to test
  21. run: |
  22. mkdir data && cd data
  23. archivebox init
  24. archivebox add 'https://example.com'
  25. archivebox version
  26. archivebox status
  27. # - name: Commit built package
  28. # run: |
  29. # cd brew_dist/
  30. # git config --local user.email "[email protected]"
  31. # git config --local user.name "GitHub Action"
  32. # git commit -m "Homebrew package autobuild" -a
  33. # - name: Push build to Github
  34. # uses: ad-m/github-push-action@master
  35. # with:
  36. # github_token: ${{ secrets.GITHUB_TOKEN }}
  37. # repository: ArchiveBox/homebrew-archivebox
  38. # branch: ${{ github.ref }}
  39. # directory: brew_dist
  40. # TODO: push bottle homebrew core PR with latest changes