name: Build on: push: branches: ['**'] tags: ['v*'] pull_request: workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '20' - name: Install ares CLI run: npm install - name: Build run: npm run build - name: Package IPK run: npm run package - name: Generate manifest and repository index run: npm run manifest - name: Upload build artifacts uses: actions/upload-artifact@v4 with: name: lg-update-blocker path: dist/* # Tag a commit with v (matching package.json) to publish a # release. The repository URL for the Homebrew Channel stays stable: # https://github.com///releases/latest/download/apps.json - name: Release if: startsWith(github.ref, 'refs/tags/v') uses: softprops/action-gh-release@v2 with: files: dist/* generate_release_notes: true body: | Install through the Homebrew Channel by adding this repository once (Homebrew Channel → Settings → Add repository): ``` https://github.com/${{ github.repository }}/releases/latest/download/apps.json ``` Or install the `.ipk` below manually with `ares-install .ipk`.