Skip to content

Commit

Permalink
Merge pull request #4 from fethij/publish_to_github_pages
Browse files Browse the repository at this point in the history
Publish to GitHub pages
  • Loading branch information
fethij authored Jun 7, 2024
2 parents e816a14 + 6f8b525 commit 57ab9ac
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy Compose Web App

on:
push:
branches: [main]

permissions:
contents: write

jobs:
test-and-build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}

- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Retrieve the secret and decode it to a file
env:
SECRETS_BASE64: ${{ secrets.SECRETS_BASE64 }}
run: |
echo $SECRETS_BASE64 | base64 --decode > secrets.properties
- name: Build
run: |
./gradlew wasmJsBrowserDistribution --no-configuration-cache
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: composeApp/build/dist/wasmJs/productionExecutable

0 comments on commit 57ab9ac

Please sign in to comment.