-
Notifications
You must be signed in to change notification settings - Fork 1.4k
68 lines (57 loc) · 1.59 KB
/
main.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: github pages
on:
workflow_dispatch:
pull_request:
push:
branches-ignore:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python (pip)
uses: actions/setup-python@v4
with:
python-version: '3.x'
architecture: 'x64'
cache: 'pip'
cache-dependency-path: .github/workflows/main.yml
- name: Install codespell and poetry
run: python3 -m pip install --upgrade codespell poetry==1.4.0
- name: Find typos with codespell
run: codespell --ignore-words-list=seh
- name: Setup Python (poetry)
uses: actions/setup-python@v4
with:
python-version: '3.x'
architecture: 'x64'
cache: 'poetry'
- name: Install dependencies
run: poetry install
- run: poetry run mkdocs build
- name: Upload Results
uses: actions/upload-artifact@v3
with:
name: website
path: ./site
deploy:
runs-on: ubuntu-latest
needs: build
concurrency: ci-${{ github.ref }}
permissions:
contents: write
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/source'
steps:
- name: Download Results
uses: actions/download-artifact@v3
with:
name: website
path: ./site
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
publish_branch: main
cname: www.mingw-w64.org