Skip to content

Commit f8c76c3

Browse files
authored
Update to library-documentation-action-v2 (#288)
Closes #247
1 parent 9cb9f59 commit f8c76c3

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

.github/workflows/generate-documentation.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,34 @@ permissions:
99
id-token: write
1010
packages: read
1111

12+
concurrency:
13+
group: "update-documentation"
14+
cancel-in-progress: true
15+
1216
jobs:
1317
generate-documentation:
1418
name: Generate documentation for release
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
1522
runs-on: ubuntu-latest
23+
container:
24+
image: ghcr.io/ponylang/library-documentation-action-v2-insiders:release
1625
steps:
17-
- uses: actions/checkout@v4.1.1
18-
- name: Generate documentation and upload
19-
uses: docker://ghcr.io/ponylang/library-documentation-action:release
20-
with:
21-
site_url: "https://ponylang.github.io/corral/"
22-
library_name: "corral"
23-
docs_build_dir: "build/corral-docs"
24-
GIT_USER_NAME: "Ponylang Main Bot"
25-
GIT_USER_EMAIL: "ponylang.main@gmail.com"
26+
- name: Checkout
27+
uses: actions/checkout@v4.1.1
28+
- name: Generate documentation
29+
run: /entrypoint.py
2630
env:
27-
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
31+
INPUT_SITE_URL: "https://ponylang.github.io/corral/"
32+
INPUT_LIBRARY_NAME: "corral"
33+
INPUT_DOCS_BUILD_DIR: "build/corral-docs"
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v5
36+
- name: Upload artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: 'build/corral-docs/site/'
40+
- name: Deploy to GitHub Pages
41+
id: deployment
42+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)