Skip to content

Commit

Permalink
chore(actions): publish writerside to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
x9x committed Dec 18, 2024
1 parent 8ac80a5 commit f30f8b8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/build-writerside-docs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Build Writerside documentation
name: Build And Publish Writerside documentation

on:
push:
branches: ["feat/241218-devops-writerside"]
workflow_dispatch:

permissions:
contents: read
id-token: write
pages: write

env:
INSTANCE: 'Writerside/radp'
DOCKER_VERSION: '243.22562'
Expand Down Expand Up @@ -70,4 +75,31 @@ jobs:
- name: Test documentation
uses: JetBrains/writerside-checker-action@v1
with:
instance: ${{ env.INSTANCE }}
instance: ${{ env.INSTANCE }}
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: [build, test]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: docs
path: artifacts

- name: Unzip artifact
run: unzip -O UTF-8 -qq "artifacts/${{ needs.build.outputs.artifact }}" -d dir

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Package and upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dir

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion Writerside/writerside.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

<ihp version="2.0">
<topics dir="topics" web-path="topics"/>
<images dir="images" web-path="images"/>
<images dir="images" web-path="radp"/>
<instance src="radp.tree" web-path="radp"/>
</ihp>

0 comments on commit f30f8b8

Please sign in to comment.