Skip to content

Commit e9b04f9

Browse files
authored
Merge pull request #111 from fethij/gitaction-wasm
Gitaction wasm
2 parents 58ec932 + 21262ab commit e9b04f9

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/deploy.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ on:
55
branches: [main]
66

77
permissions:
8-
contents: write
8+
contents: read
9+
pages: write
10+
id-token: write
911

1012
jobs:
1113
test-and-build-and-deploy:
1214
runs-on: ubuntu-latest
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.deployment.outputs.page_url }}
1318
steps:
1419
- name: Checkout
1520
uses: actions/[email protected]
@@ -32,12 +37,15 @@ jobs:
3237
run: |
3338
echo $SECRETS_BASE64 | base64 --decode > secrets.properties
3439
35-
- name: Build
40+
- name: Build Page
3641
run: |
3742
./gradlew wasmJsBrowserDistribution --no-configuration-cache
3843
39-
- name: Deploy
40-
uses: JamesIves/github-pages-deploy-action@v4.7.3
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v4
4146
with:
42-
branch: gh-pages
43-
folder: composeApp/build/dist/wasmJs/productionExecutable
47+
path: 'composeApp/build/dist/wasmJs/productionExecutable'
48+
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)