fork/wezterm

git clone https://git.julia.blue/fork/wezterm

Wez Furlongci: skip more things in forks3eb95c466

main
1.6 KiB70 linesraw
1name: pages
2
3on:
4  push:
5    branches:
6      - main
7    paths:
8      - "docs/**"
9      - "ci/build-docs.sh"
10      - "ci/generate-docs.py"
11      - "ci/subst-release-info.py"
12      - ".github/workflows/pages.yml"
13  schedule:
14    - cron: "50 * * * *"
15
16  # Allows you to run this workflow manually from the Actions tab
17  workflow_dispatch:
18
19# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
20permissions:
21  contents: read
22  pages: write
23  id-token: write
24  actions: read
25
26concurrency:
27  group: "pages"
28
29jobs:
30  build:
31    runs-on: ubuntu-latest
32    if: github.repository == 'wezterm/wezterm'
33    steps:
34      - name: Checkout
35        uses: actions/checkout@v3
36      - name: "Install Rust"
37        uses: dtolnay/rust-toolchain@stable
38      - name: Install gelatyx
39        uses: baptiste0928/cargo-install@v2
40        with:
41          crate: gelatyx
42      - uses: actions/setup-python@v5
43        with:
44          python-version: 3.x
45      - uses: actions/cache@v4
46        with:
47          key: ${{ github.ref }}
48          path: .cache
49      - name: Build
50        env:
51          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52        run: |
53          source $HOME/.cargo/env
54          CARDS=true ./ci/build-docs.sh
55      - name: Upload artifact
56        uses: actions/upload-pages-artifact@v3
57        with:
58          path: gh_pages
59
60  deploy:
61    if: github.repository == 'wezterm/wezterm'
62    environment:
63      name: github-pages
64      url: ${{ steps.deployment.outputs.page_url }}
65    runs-on: ubuntu-latest
66    needs: build
67    steps:
68      - name: Deploy
69        id: deployment
70        uses: actions/deploy-pages@v4