-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (52 loc) · 1.21 KB
/
main.yml
File metadata and controls
60 lines (52 loc) · 1.21 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Main
on:
workflow_dispatch:
release:
types: [published]
push:
branches:
- main
paths-ignore:
- README.md
pull_request:
branches:
- "*"
paths-ignore:
- README.md
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.13"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
submodules: false
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -U pip
pip install -r requirements.txt
- name: Build BlackSheep documentation
run: |
cd blacksheep
mkdocs build
- name: Zip built files
run: |
cd blacksheep
mkdir -p .build/blacksheep
mv site/* .build/blacksheep
cd .build
7z a -r site.zip blacksheep
- name: Upload distribution package
uses: actions/upload-artifact@master
with:
name: dist
path: .build/site.zip