File tree Expand file tree Collapse file tree 1 file changed +36
-12
lines changed
Expand file tree Collapse file tree 1 file changed +36
-12
lines changed Original file line number Diff line number Diff line change @@ -71,22 +71,12 @@ jobs:
7171 - name : Checkout
7272 uses : actions/checkout@v4
7373
74- - name : setup-java
74+ - name : Setup Java
7575 uses : actions/setup-java@v4
7676 with :
7777 java-version : 17
7878 distribution : adopt
7979
80- - name : Cache Gradle
81- uses : actions/cache@v3
82- with :
83- path : |
84- ~/.gradle/caches
85- ~/.gradle/wrapper
86- key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
87- restore-keys : |
88- ${{ runner.os }}-gradle-
89-
9080 - name : Gradle Wrapper Validation
9181 uses : gradle/wrapper-validation-action@v1
9282
9888 - name : Deploy
9989 uses : JamesIves/github-pages-deploy-action@v4
10090 with :
101- folder : dokka/
91+ folder : dokka/
92+
93+ demo :
94+ name : " Publish Demo"
95+ runs-on : ubuntu-latest
96+ permissions :
97+ contents : read
98+ deployments : write
99+ needs : release
100+ steps :
101+ - name : Checkout
102+ uses : actions/checkout@v4
103+
104+ - name : Setup Java
105+ uses : actions/setup-java@v4
106+ with :
107+ java-version : 17
108+ distribution : adopt
109+
110+ - name : Gradle Wrapper Validation
111+ uses : gradle/wrapper-validation-action@v1
112+
113+ - name : Build Production browser demo
114+ uses : gradle/gradle-build-action@v2
115+ with :
116+ arguments : :demo:composeApp:jsBrowserProductionWebpack
117+
118+ - name : Publish to Cloudflare Pages
119+ uses : cloudflare/pages-action@v1
120+ with :
121+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
122+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
123+ projectName : kmpalette-demo
124+ directory : demo/composeApp/build/dist/js/productionExecutable
125+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments