-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.09 KB
/
publish.yml
File metadata and controls
43 lines (41 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: 'CI'
on:
workflow_dispatch:
push:
branches:
- master
# Permissions
permissions:
contents: read
pages: write
id-token: write
# Jobs
jobs:
# Publish Project
publish:
name: Publish
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
# Setup
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup GitHub Pages
uses: actions/configure-pages@v5
# Build Site
- name: Install Dependencies
run: ./scripts/install-mkdocs.sh
- name: Download MCPI-Reborn Documentation
run: ./scripts/download-reborn-docs.sh
- name: Build Site
run: ./scripts/build.sh
# Deploy Site
- name: Upload Site
uses: actions/upload-pages-artifact@v3
with:
path: ./site
- name: Deploy To GitHub Pages
id: deployment
uses: actions/deploy-pages@v4