-
Notifications
You must be signed in to change notification settings - Fork 20
45 lines (39 loc) · 1.13 KB
/
deploy-web.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Deploy Web Application
on:
push:
branches:
- master
jobs:
build-and-deploy-resym-web:
name: Build resym-web
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-02-24
profile: minimal
target: wasm32-unknown-unknown
override: true
- name: Install wasm-pack
uses: jetli/[email protected]
with:
version: "latest"
- name: Build resym-web
run: .\scripts\build_resym_web.bat
- name: Prepare resym-web deployment
run: |
cd .\resym\pkg\
rm .gitignore
git init
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add *.html *.js *.wasm snippets\
git commit -m 'Deploy resym-web'
- name: Force push to destination branch
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: resym-web
force: true
directory: ./resym/pkg/