-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (34 loc) · 837 Bytes
/
ci.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
name: Run CI/CD pipeline
on:
push:
branches: "*"
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
setup:
runs-on: ubuntu-latest
outputs:
is-main-branch: |-
${{
github.event_name != 'pull_request' && contains(
fromJson('["main", "1.19"]'),
(github.head_ref || github.ref_name)
)
}}
steps:
- name: Print message so the workflow isn't invalid
run: 'echo "HexDebug <3 HexBug"'
build-docs:
needs: setup
uses: hexdoc-dev/actions/.github/workflows/hexdoc.yml@v0
permissions:
contents: write
pages: read
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
python-version: 3.11
deploy-pages: ${{ needs.setup.outputs.is-main-branch == 'true' }}
release: false