Skip to content

Commit 57a19b2

Browse files
committed
Use github pages action
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
1 parent 4f291b2 commit 57a19b2

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/static.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
3+
4+
on:
5+
# Runs on pushes targeting the specified branch
6+
push:
7+
branches: ["gh-pages"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
23+
24+
jobs:
25+
# Single deploy job since we're just deploying
26+
deploy:
27+
container: quay.io/justinc1_github/scale_ci_integ:3
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v3
35+
- name: Setup Pages
36+
uses: actions/configure-pages@v3
37+
- name: Build Ansible collection docs
38+
run: |
39+
/bin/rm -fr /tmp/scale-ansible-collection
40+
mkdir -p /tmp/scale-ansible-collection/ansible_collections/scale_computing/
41+
cp -a . /tmp/scale-ansible-collection/ansible_collections/scale_computing/hypercore
42+
export ANSIBLE_COLLECTIONS_PATH=/tmp/scale-ansible-collection
43+
apt update && apt install -y rsync
44+
make docs
45+
- name: Upload artifact
46+
uses: actions/upload-pages-artifact@v1
47+
with:
48+
path: 'docs/build/html'
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)