generated from r-pad/python_pkg_template
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 975 Bytes
/
deploy-site.yaml
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
name: Deploy Site
on:
workflow_call:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Download Site Artifact
uses: actions/download-artifact@v3
with:
name: site
path: docs/site/
- name: Setup Pages
if: ${{ !env.ACT }}
uses: actions/configure-pages@v1
- name: Upload Artifact to Pages
if: ${{ !env.ACT }}
uses: actions/upload-pages-artifact@v1
with:
path: docs/site/
- name: Deploy to GitHub Pages
if: ${{ !env.ACT && github.ref == 'refs/heads/main' }}
id: deployment
uses: actions/deploy-pages@main