2020-12-06 14:26:44 +00:00
|
|
|
name: Build Homebrew package
|
2020-11-28 10:44:37 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
2020-11-28 10:48:45 +00:00
|
|
|
submodules: true
|
2020-11-28 10:44:37 +00:00
|
|
|
fetch-depth: 1
|
|
|
|
|
2020-12-11 19:26:37 +00:00
|
|
|
# TODO: modify archivebox.rb to update src url, hashes, and dependencies
|
|
|
|
|
2020-11-28 10:44:37 +00:00
|
|
|
- name: Build Homebrew Bottle
|
|
|
|
run: |
|
2020-11-28 11:00:49 +00:00
|
|
|
pip3 install --upgrade pip setuptools wheel
|
2020-11-28 10:44:37 +00:00
|
|
|
cd brew_dist/
|
|
|
|
brew install --build-bottle ./archivebox.rb
|
2020-12-11 16:35:25 +00:00
|
|
|
# brew bottle archivebox
|
2021-12-23 17:49:03 +00:00
|
|
|
archivebox version
|
2020-11-28 10:44:37 +00:00
|
|
|
|
|
|
|
- name: Add some links to test
|
|
|
|
run: |
|
|
|
|
mkdir data && cd data
|
2021-12-23 20:56:28 +00:00
|
|
|
archivebox init --setup
|
2020-11-28 10:44:37 +00:00
|
|
|
archivebox add 'https://example.com'
|
|
|
|
archivebox version
|
|
|
|
archivebox status
|
|
|
|
|
2020-12-11 19:26:37 +00:00
|
|
|
# - name: Commit built package
|
2020-12-11 17:09:40 +00:00
|
|
|
# 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
|
|
|
|
|
2020-12-11 19:26:37 +00:00
|
|
|
# - name: Push build to Github
|
2020-12-11 17:09:40 +00:00
|
|
|
# uses: ad-m/github-push-action@master
|
|
|
|
# with:
|
|
|
|
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# repository: ArchiveBox/homebrew-archivebox
|
|
|
|
# branch: ${{ github.ref }}
|
|
|
|
# directory: brew_dist
|
|
|
|
|
2020-12-11 19:26:37 +00:00
|
|
|
# TODO: push bottle homebrew core PR with latest changes
|