homebrew.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. archivebox version
  21. - name: Add some links to test
  22. run: |
  23. mkdir data && cd data
  24. archivebox init --setup
  25. archivebox add 'https://example.com'
  26. archivebox version
  27. archivebox status
  28. # - name: Commit built package
  29. # run: |
  30. # cd brew_dist/
  31. # git config --local user.email "[email protected]"
  32. # git config --local user.name "GitHub Action"
  33. # git commit -m "Homebrew package autobuild" -a
  34. # - name: Push build to Github
  35. # uses: ad-m/github-push-action@master
  36. # with:
  37. # github_token: ${{ secrets.GITHUB_TOKEN }}
  38. # repository: ArchiveBox/homebrew-archivebox
  39. # branch: ${{ github.ref }}
  40. # directory: brew_dist
  41. # TODO: push bottle homebrew core PR with latest changes