mirror of
https://github.com/ivuorinen/homebrew-tap.git
synced 2026-02-04 08:45:30 +00:00
feat: full site
This commit is contained in:
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@@ -1,3 +1,4 @@
|
||||
---
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
@@ -5,23 +6,25 @@ on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
actions: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
|
||||
jobs:
|
||||
test-bot:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-22.04, macos-13, macos-14]
|
||||
os: [ubuntu-22.04, macos-14]
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
actions: read
|
||||
|
||||
steps:
|
||||
- name: Set up Homebrew
|
||||
id: set-up-homebrew
|
||||
@@ -55,4 +58,4 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: bottles_${{ matrix.os }}
|
||||
path: '*.bottle.*'
|
||||
path: "*.bottle.*"
|
||||
|
||||
39
.github/workflows/pages-build.yml
vendored
39
.github/workflows/pages-build.yml
vendored
@@ -1,17 +1,16 @@
|
||||
---
|
||||
name: Build and Deploy Documentation
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'Formula/**'
|
||||
- 'docs/**'
|
||||
- 'scripts/**'
|
||||
- "Formula/**"
|
||||
- "docs/**"
|
||||
- "scripts/**"
|
||||
- "theme/**"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
permissions: read-all
|
||||
|
||||
concurrency:
|
||||
group: pages
|
||||
@@ -20,6 +19,11 @@ concurrency:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
@@ -28,30 +32,21 @@ jobs:
|
||||
|
||||
- name: Setup Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '3.4'
|
||||
bundler-cache: true
|
||||
|
||||
- name: Parse Formulae and Generate Data
|
||||
- name: Parse Formulae and Build Site
|
||||
run: |
|
||||
ruby scripts/parse_formulas.rb
|
||||
echo "Generated formulae.json with $(jq '.formulae | length' docs/_data/formulae.json) formulae"
|
||||
ruby scripts/build_site.rb
|
||||
|
||||
- name: Setup Pages
|
||||
id: pages
|
||||
uses: actions/configure-pages@v5
|
||||
|
||||
- name: Build Jekyll Site
|
||||
run: |
|
||||
cd docs
|
||||
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
|
||||
env:
|
||||
JEKYLL_ENV: production
|
||||
|
||||
- name: Upload Pages Artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: docs/_site
|
||||
path: docs
|
||||
|
||||
deploy:
|
||||
environment:
|
||||
@@ -59,6 +54,12 @@ jobs:
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
|
||||
Reference in New Issue
Block a user