forked from mame/emirb
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 988 Bytes
/
build.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
46
name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.0'
- name: Setup emsdk
run: |
git clone https://github.com/emscripten-core/emsdk
cd emsdk
./emsdk install latest
./emsdk activate latest
./emsdk construct_env
- name: Build irb
run: |
source emsdk/emsdk_env.sh
./build.sh
- name: Publish
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: irb-ruby-uy
directory: docs
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: '3'