Skip to content

try scp-action

try scp-action #10

name: Emscripten Build
on:
push:
branches:
- main
- test-branch
pull_request:
branches:
- main
jobs:
build:

Check failure on line 13 in .github/workflows/emscripten-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/emscripten-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up Python (required for Emscripten)
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Emscripten SDK
run: |
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
shell: bash
- name: Configure the build
run: |
source emsdk/emsdk_env.sh
cd demo
make emscripten
shell: bash
- name: copy file via ssh password
uses: appleboy/[email protected]
with:
host: ${{ secrets.REMOTE_SERVER_ADDR }}
username: ${{ secrets.REMOTE_SERVER_USER }}
key: ${{ secrets.REMOTE_SERVER_SSH_KEY }}
port: ${{ secrets.REMOTE_SERVER_PORT }}
source: "demo/*.html,demo/*.js,demo/*.wasm,demo/*.data"
target: ${{ secrets.REMOTE_SERVER_DIRECTORY }}