1
0
Fork 0
mirror of synced 2024-05-17 02:43:16 +12:00
ArchiveBox/.github/workflows/homebrew.yml

52 lines
1.3 KiB
YAML
Raw Normal View History

name: Build Homebrew package
2020-11-28 23:44:37 +13:00
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
2020-11-28 23:48:45 +13:00
submodules: true
2020-11-28 23:44:37 +13:00
fetch-depth: 1
# TODO: modify archivebox.rb to update src url, hashes, and dependencies
2020-11-28 23:44:37 +13:00
- name: Build Homebrew Bottle
run: |
2020-11-29 00:00:49 +13:00
pip3 install --upgrade pip setuptools wheel
2020-11-28 23:44:37 +13:00
cd brew_dist/
brew install --build-bottle ./archivebox.rb
2020-12-12 05:35:25 +13:00
# brew bottle archivebox
archivebox version
2020-11-28 23:44:37 +13:00
- name: Add some links to test
run: |
mkdir data && cd data
archivebox init --setup
2020-11-28 23:44:37 +13:00
archivebox add 'https://example.com'
archivebox version
archivebox status
# - name: Commit built package
# run: |
# cd brew_dist/
# git config --local user.email "action@github.com"
# git config --local user.name "GitHub Action"
# git commit -m "Homebrew package autobuild" -a
# - name: Push build to Github
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# repository: ArchiveBox/homebrew-archivebox
# branch: ${{ github.ref }}
# directory: brew_dist
# TODO: push bottle homebrew core PR with latest changes