-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (44 loc) · 1.45 KB
/
build_and_deploy_docs.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
40
41
42
43
44
45
46
47
48
49
50
51
52
# This workflow is triggered on any PR's changes
name: Build and deploy docs to Github Pages
on:
push:
branches:
- bugfix/FAIRSPC-87
jobs:
build-saturn:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Log details
run: |
BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
echo "Triggered on branch: $BRANCH"
# - name: Set up Ruby (required for gem installation)
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: '2.7'
- name: Experiment with directory change
run: |
echo "Current directory: $(pwd)"
here=$(dirname "${0}")
echo "Script directory: $here"
grandparent_dir=$(cd "${here}/../.." && pwd)
echo "Grandparent directory: $grandparent_dir"
pushd "${grandparent_dir}"
echo "Current directory: $(pwd)"
# - name: Install Asciidoctor to build docs
# run: |
# gem install asciidoctor
# gem install asciidoctor-pdf
# gem install rouge
#
# - name: Run Build Docs script
# run: ./docs/scripts/build.sh
#
# - name: Run Deploy Docs script
# env:
# CI_SERVICE_ACCOUNT_USER: ${{ secrets.CI_SERVICE_ACCOUNT_USER }}
# CI_SERVICE_ACCOUNT_PASSWORD: ${{ secrets.FNS_PAT }}
# DOCUMENTATION_REPO: ${{ vars.DOCUMENTATION_REPO }}
# run: ./docs/scripts/deploy.sh