Skip to content

Commit 9580bf8

Browse files
authored
Merge pull request #20 from gatrongdev/dev
Bump version to 0.0.8 and update CI workflows for documentation deplo…
2 parents 413c83f + 1b7be83 commit 9580bf8

3 files changed

Lines changed: 36 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/docs.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff 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

shared/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ plugins {
1717
}
1818

1919
group = "io.github.gatrongdev"
20-
version = "0.0.7"
20+
version = "0.0.8"
2121

2222
kotlin {
2323
androidTarget {

0 commit comments

Comments
 (0)