add config for client #12
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
permissions: | |
contents: write | |
jobs: | |
release: | |
name: Create release | |
runs-on: ubuntu-latest | |
outputs: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
steps: | |
- name: Extract version name | |
id: extract_name | |
run: echo "name=$(echo ${GITHUB_REF##*/})" >>$GITHUB_OUTPUT | |
shell: bash | |
build-web: | |
name: Build web release | |
runs-on: ubuntu-latest | |
needs: release | |
steps: | |
- name: Checkout to push branch | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
- name: Set up JDK 19 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 19 | |
- name: Build Wasm Distribution | |
if: job.status == 'success' | |
run: | | |
export GRADLE_USER_HOME=$(pwd)/.gradle | |
export CLIENT_HOST=${{ secrets.CLIENT_HOST }} | |
export CLIENT_PROTOCOL=https | |
chmod +x ./gradlew | |
./gradlew composeApp:wasmJsBrowserDistribution | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./composeApp/build/dist/wasmJs/productionExecutable | |
force_orphan: true | |
cname: sh.procyk.in |