Merge pull request #10 from fethij/update_readme #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |