Skip to content

Commit

Permalink
Update web-assembly.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax authored Sep 8, 2024
1 parent 3284bb8 commit c0e4abf
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/web-assembly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,21 @@ jobs:
- name: List output files
run: ls -la ./src/salam-wa*

- name: Clone Salam-Editor repository
run: |
git clone https://github.com/SalamLang/Salam-Editor.git
cd Salam-Editor
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
- uses: Dylan700/sftp-upload-action@latest
with:
server: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
uploads: |
./src/ => ${{ secrets.SERVER_PATH }}
ignore: |
!salam-wa.js
!salam-wa.wasm
!salam-wa.html
!src/salam-wa.js
!src/salam-wa.wasm
!src/salam-wa.html
- name: Copy WebAssembly files to Salam-Editor
run: |
cd Salam-Editor
cp ../src/salam-wa.js .
cp ../src/salam-wa.wasm .
git add salam-wa.js salam-wa.wasm
git commit -m "Update WebAssembly files"
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c0e4abf

Please sign in to comment.