|
1 | | -name: Deploy to GitHub Pages |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - branches: |
6 | | - - main |
7 | | - workflow_dispatch: |
8 | | - schedule: |
9 | | - - cron: '0 */6 * * *' # Run every 6 hours |
10 | | - |
11 | | -permissions: |
12 | | - contents: read |
13 | | - pages: write |
14 | | - id-token: write |
15 | | - |
16 | | -concurrency: |
17 | | - group: "pages" |
18 | | - cancel-in-progress: false |
19 | | - |
20 | | -jobs: |
21 | | - validate: |
22 | | - uses: ./.github/workflows/test.yml |
23 | | - |
24 | | - build: |
25 | | - runs-on: ubuntu-latest |
26 | | - needs: validate |
27 | | - steps: |
28 | | - - name: Checkout |
29 | | - uses: actions/checkout@v4 |
30 | | - |
31 | | - - name: Setup Pages |
32 | | - uses: actions/configure-pages@v5 |
33 | | - |
34 | | - - name: Install uv with caching |
35 | | - uses: astral-sh/setup-uv@v5 |
36 | | - with: |
37 | | - enable-cache: true |
38 | | - cache-dependency-glob: "pyproject.toml" |
39 | | - |
40 | | - - name: Install dependencies |
41 | | - run: | |
42 | | - uv sync --group dev |
43 | | - |
44 | | - - name: Setup site structure |
45 | | - run: | |
46 | | - mkdir -p pages/registry |
47 | | - mkdir -p pages/api/servers |
48 | | - |
49 | | - - name: Run preparation script |
50 | | - env: |
51 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
52 | | - run: | |
53 | | - chmod +x ./scripts/prepare.sh |
54 | | - source .venv/bin/activate |
55 | | - ./scripts/prepare.sh ./pages |
56 | | - |
57 | | - |
58 | | - - name: Build with Jekyll |
59 | | - uses: actions/jekyll-build-pages@v1 |
60 | | - with: |
61 | | - source: ./pages |
62 | | - destination: ./_site |
63 | | - |
64 | | - - name: Upload artifact |
65 | | - uses: actions/upload-pages-artifact@v3 |
66 | | - |
67 | | - deploy: |
68 | | - environment: |
69 | | - name: github-pages |
70 | | - url: ${{ steps.deployment.outputs.page_url }} |
71 | | - runs-on: ubuntu-latest |
72 | | - needs: build |
73 | | - steps: |
74 | | - - name: Deploy to GitHub Pages |
75 | | - id: deployment |
76 | | - uses: actions/deploy-pages@v4 |
77 | | - |
78 | | - deploy-cloudflare: |
79 | | - runs-on: ubuntu-latest |
80 | | - needs: build |
81 | | - steps: |
82 | | - - name: Checkout |
83 | | - uses: actions/checkout@v4 |
84 | | - |
85 | | - - name: Download artifact |
86 | | - uses: actions/download-artifact@v4 |
87 | | - with: |
88 | | - name: github-pages |
89 | | - path: ./dist |
90 | | - |
91 | | - - name: Extract artifact |
92 | | - run: | |
93 | | - tar -xf ./dist/artifact.tar -C ./dist |
94 | | - rm ./dist/artifact.tar |
95 | | - |
96 | | - - name: Deploy to Cloudflare Pages |
97 | | - uses: cloudflare/pages-action@v1 |
98 | | - with: |
99 | | - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} |
100 | | - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |
101 | | - projectName: mcpm-sh |
102 | | - directory: ./dist |
| 1 | +# DISABLED: Deploy to GitHub Pages |
| 2 | +#name: Deploy to GitHub Pages |
| 3 | +# |
| 4 | +#on: |
| 5 | +# push: |
| 6 | +# branches: |
| 7 | +# - main |
| 8 | +# workflow_dispatch: |
| 9 | +# schedule: |
| 10 | +# - cron: '0 */6 * * *' # Run every 6 hours |
| 11 | +# |
| 12 | +#permissions: |
| 13 | +# contents: read |
| 14 | +# pages: write |
| 15 | +# id-token: write |
| 16 | +# |
| 17 | +#concurrency: |
| 18 | +# group: "pages" |
| 19 | +# cancel-in-progress: false |
| 20 | +# |
| 21 | +#jobs: |
| 22 | +# validate: |
| 23 | +# uses: ./.github/workflows/test.yml |
| 24 | +# |
| 25 | +# build: |
| 26 | +# runs-on: ubuntu-latest |
| 27 | +# needs: validate |
| 28 | +# steps: |
| 29 | +# - name: Checkout |
| 30 | +# uses: actions/checkout@v4 |
| 31 | +# |
| 32 | +# - name: Setup Pages |
| 33 | +# uses: actions/configure-pages@v5 |
| 34 | +# |
| 35 | +# - name: Install uv with caching |
| 36 | +# uses: astral-sh/setup-uv@v5 |
| 37 | +# with: |
| 38 | +# enable-cache: true |
| 39 | +# cache-dependency-glob: "pyproject.toml" |
| 40 | +# |
| 41 | +# - name: Install dependencies |
| 42 | +# run: | |
| 43 | +# uv sync --group dev |
| 44 | +# |
| 45 | +# - name: Setup site structure |
| 46 | +# run: | |
| 47 | +# mkdir -p pages/registry |
| 48 | +# mkdir -p pages/api/servers |
| 49 | +# |
| 50 | +# - name: Run preparation script |
| 51 | +# env: |
| 52 | +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 53 | +# run: | |
| 54 | +# chmod +x ./scripts/prepare.sh |
| 55 | +# source .venv/bin/activate |
| 56 | +# ./scripts/prepare.sh ./pages |
| 57 | +# |
| 58 | +# |
| 59 | +# - name: Build with Jekyll |
| 60 | +# uses: actions/jekyll-build-pages@v1 |
| 61 | +# with: |
| 62 | +# source: ./pages |
| 63 | +# destination: ./_site |
| 64 | +# |
| 65 | +# - name: Upload artifact |
| 66 | +# uses: actions/upload-pages-artifact@v3 |
| 67 | +# |
| 68 | +# deploy: |
| 69 | +# environment: |
| 70 | +# name: github-pages |
| 71 | +# url: ${{ steps.deployment.outputs.page_url }} |
| 72 | +# runs-on: ubuntu-latest |
| 73 | +# needs: build |
| 74 | +# steps: |
| 75 | +# - name: Deploy to GitHub Pages |
| 76 | +# id: deployment |
| 77 | +# uses: actions/deploy-pages@v4 |
| 78 | +# |
| 79 | +# deploy-cloudflare: |
| 80 | +# runs-on: ubuntu-latest |
| 81 | +# needs: build |
| 82 | +# steps: |
| 83 | +# - name: Checkout |
| 84 | +# uses: actions/checkout@v4 |
| 85 | +# |
| 86 | +# - name: Download artifact |
| 87 | +# uses: actions/download-artifact@v4 |
| 88 | +# with: |
| 89 | +# name: github-pages |
| 90 | +# path: ./dist |
| 91 | +# |
| 92 | +# - name: Extract artifact |
| 93 | +# run: | |
| 94 | +# tar -xf ./dist/artifact.tar -C ./dist |
| 95 | +# rm ./dist/artifact.tar |
| 96 | +# |
| 97 | +# - name: Deploy to Cloudflare Pages |
| 98 | +# uses: cloudflare/pages-action@v1 |
| 99 | +# with: |
| 100 | +# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} |
| 101 | +# accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |
| 102 | +# projectName: mcpm-sh |
| 103 | +# directory: ./dist |
0 commit comments