File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,13 +95,24 @@ jobs:
9595 - name : 📚 Generate documentation
9696 run : ./gradlew dokkaHtml
9797
98- - name : 🚀 Deploy to GitHub Pages
99- uses : peaceiris/actions-gh-pages@v3
100- if : github.ref == 'refs/heads/main'
98+ - name : 📤 Upload Documentation Artifact
99+ uses : actions/upload-pages-artifact@v3
101100 with :
102- github_token : ${{ secrets.TOKEN }}
103- publish_dir : ./shared/build/dokka/html
104- destination_dir : docs
101+ path : ' ./build/dokka/html'
102+
103+ deploy-docs :
104+ name : 🚀 Deploy to GitHub Pages
105+ environment :
106+ name : github-pages
107+ url : ${{ steps.deployment.outputs.page_url }}
108+ runs-on : ubuntu-latest
109+ needs : build-docs
110+ if : github.ref == 'refs/heads/main'
111+
112+ steps :
113+ - name : 🌐 Deploy to GitHub Pages
114+ id : deployment
115+ uses : actions/deploy-pages@v4
105116
106117 dependency-scan :
107118 name : 🔍 Dependency Scan
Original file line number Diff line number Diff line change @@ -47,14 +47,25 @@ jobs:
4747
4848 - name : 📚 Generate Documentation
4949 run : ./gradlew dokkaHtml
50-
51- - name : 🚀 Deploy to GitHub Pages
52- if : github.ref == 'refs/heads/main'
53- uses : peaceiris/actions-gh-pages@v3
50+
51+ - name : 📤 Upload Documentation Artifact
52+ uses : actions/upload-pages-artifact@v3
5453 with :
55- github_token : ${{ secrets.TOKEN }}
56- publish_dir : ./shared/build/dokka/html
57- commit_message : ' docs: update documentation site'
54+ path : ' ./build/dokka/html'
55+
56+ deploy-docs :
57+ name : 🚀 Deploy to GitHub Pages
58+ environment :
59+ name : github-pages
60+ url : ${{ steps.deployment.outputs.page_url }}
61+ runs-on : ubuntu-latest
62+ needs : build-docs
63+ if : github.ref == 'refs/heads/main'
64+
65+ steps :
66+ - name : 🌐 Deploy to GitHub Pages
67+ id : deployment
68+ uses : actions/deploy-pages@v4
5869
5970 notify :
6071 name : 📢 Notify Success
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ plugins {
1717}
1818
1919group = " io.github.gatrongdev"
20- version = " 0.0.7 "
20+ version = " 0.0.8 "
2121
2222kotlin {
2323 androidTarget {
You can’t perform that action at this time.
0 commit comments