forked from b3yc0d3/rule34Py
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.02 KB
/
cd-master.yml
File metadata and controls
45 lines (37 loc) · 1.02 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
name: Continuous Delivery
# This workflow performs post-push actions on the 'master' branch.
# It should build the final version of the branch artifacts, that might be
# released to PyPi or GH. And it should build and deploy the GH Pages artifacts.
on:
push:
branches:
- master
permissions:
contents: write
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build the project
uses: ./.github/actions/build-project
with:
python-version: '3.x'
gh-pages:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout build artifacts
uses: actions/download-artifact@v4
with:
path: ./build
pattern: build.*.Linux-py3.x
merge-multiple: true
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/html