Skip to content

Commit 3c938bf

Browse files
authored
Update jekyll-docker.yml
1 parent 6ad9096 commit 3c938bf

File tree

1 file changed

+56
-15
lines changed

1 file changed

+56
-15
lines changed

.github/workflows/jekyll-docker.yml

Lines changed: 56 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,64 @@ jobs:
1313
- name: Checkout repository
1414
uses: actions/checkout@v2
1515

16-
- name: Give execute permission to _updatePublisher.sh
17-
run: chmod +x ./_updatePublisher.sh
18-
19-
- name: Update the image to the latest publisher
20-
uses: docker://hl7fhir/ig-publisher-base:latest
21-
with:
22-
args: ./_updatePublisher.sh --force
23-
24-
- name: Run sushi to generate the ig.ini file
25-
uses: docker://hl7fhir/ig-publisher-base:latest
16+
- name: Install Node.js
17+
uses: actions/setup-node@v2
2618
with:
27-
args: sushi
19+
node-version: '14'
20+
21+
- name: Install SUSHI
22+
run: pwd & npm install -g fsh-sushi
2823

29-
- name: Run the IG publisher
30-
uses: docker://hl7fhir/ig-publisher-base:latest
31-
with:
32-
args: ./_genonce.sh -no-sushi
24+
- name: Check Gem installation paths
25+
run: gem environment
26+
27+
- name: Install Jekyll and Bundler
28+
run: |
29+
echo 'export PATH=$HOME/.local/share/gem/ruby/3.0.0/bin/:$PATH' >> $GITHUB_ENV
30+
# echo 'export PATH=~/.local/share/gem/ruby/3.0.0/bin/:/var/lib/gems/3.0.0/bin/:/home/runner/.local/share/gem/ruby/3.0.0/bin/:/usr/local/lib/ruby/gems/3.0.0/bin/:/usr/lib/ruby/gems/3.0.0/bin/:/usr/lib/x86_64-linux-gnu/ruby/gems/3.0.0/bin/:/usr/share/rubygems-integration/3.0.0/bin/:/usr/share/rubygems-integration/all/bin/:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.0.0/bin/:$PATH' >> $GITHUB_ENV
31+
export PATH="~/.local/share/gem/ruby/3.0.0/bin:$PATH"
32+
source $GITHUB_ENV
33+
gem install --user-install bundler jekyll jekyll-paginate
34+
echo $PATH
35+
cat $GITHUB_ENV
36+
37+
- name: Determine Jekyll installation path
38+
run: |
39+
echo "Jekyll installed at:"
40+
gem which jekyll
41+
echo $PATH
42+
export PATH="~/.local/share/gem/ruby/3.0.0/bin:$PATH"
43+
jekyll -v || echo "Jekyll is not in the default PATH"
44+
ls -la ~/.local/share/gem/ruby/3.0.0/bin/
45+
# ls -la /var/lib/gems/3.0.0/bin/
46+
# ls -la /home/runner/.local/share/gem/ruby/3.0.0/bin/
47+
# ls -la /usr/local/lib/ruby/gems/3.0.0/bin/
48+
# ls -la /usr/lib/ruby/gems/3.0.0/bin/
49+
# ls -la /usr/lib/x86_64-linux-gnu/ruby/gems/3.0.0/bin/
50+
# ls -la /usr/share/rubygems-integration/3.0.0/bin/
51+
# ls -la /usr/share/rubygems-integration/all/bin/
52+
# ls -la /usr/lib/x86_64-linux-gnu/rubygems-integration/3.0.0/bin/
53+
54+
- name: Create input-cache directory
55+
run: pwd & mkdir -p ./input-cache & mkdir -p ./output
56+
57+
- name: Give execute permissions to scripts
58+
run: chmod +x _updatePublisher.sh _genonce.sh
59+
60+
- name: Update IG Publisher
61+
run: yes | ./_updatePublisher.sh
62+
63+
- name: Run SUSHI to generate FHIR resources
64+
run: sushi .
65+
66+
- name: Run IG Publisher using _genonce.sh
67+
run: |
68+
cat $GITHUB_ENV
69+
export PATH="~/.local/share/gem/ruby/3.0.0/bin:$PATH"
70+
jekyll -v || echo "Jekyll is not in the default PATH"
71+
72+
sudo ./_genonce.sh
73+
# || jekyll build --source "./temp/pages" --destination "./output"
3374
3475
- name: Deploy to GitHub Pages
3576
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)