File tree 3 files changed +8
-18
lines changed
3 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,17 @@ jobs:
24
24
uses : Swatinem/rust-cache@v1
25
25
26
26
- name : Install wrangler
27
- run : cargo install wrangler
27
+ run : npm install -g wrangler
28
28
29
- - name : Build
29
+ - name : Build
30
30
if : github.event_name != 'workflow_dispatch'
31
- run : wrangler build
31
+ run : wrangler publish --dry-run
32
32
33
33
- name : Publish
34
34
if : github.event_name == 'workflow_dispatch'
35
35
run : wrangler publish
36
36
env :
37
- CF_API_TOKEN : ${{ secrets.CF_API_TOKEN }}
37
+ CLOUDFLARE_API_TOKEN : ${{ secrets.CF_API_TOKEN }}
38
38
39
39
- name : Publish secrets
40
40
if : github.event_name == 'workflow_dispatch' && github.event.inputs.update_secrets == 'true'
44
44
echo '${{ secrets.RESTREAM_ID }}' | wrangler secret put "RESTREAM_ID"
45
45
echo '${{ secrets.RESTREAM_SECRET }}' | wrangler secret put "RESTREAM_SECRET"
46
46
env :
47
- CF_API_TOKEN : ${{ secrets.CF_API_TOKEN }}
47
+ CLOUDFLARE_API_TOKEN : ${{ secrets.CF_API_TOKEN }}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ default = ["console_error_panic_hook"]
14
14
15
15
[dependencies ]
16
16
cfg-if = " 0.1.2"
17
- worker = " 0.0.9 "
17
+ worker = " 0.0.15 "
18
18
serde_urlencoded = " 0.7.1"
19
19
serde_json = " 1.0.67"
20
20
serde = " 1.0.136"
Original file line number Diff line number Diff line change 1
1
name = " obs-oauth-cf"
2
- type = " javascript"
3
- workers_dev = true
4
- compatibility_date = " 2022-03-29"
2
+ compatibility_date = " 2022-05-15"
3
+ main = " build/worker/shim.mjs"
5
4
6
5
[vars ]
7
6
TWITCH_REDIRECT_URL = " https://auth.obsproject.com/v1/twitch/finalise"
@@ -12,14 +11,5 @@ RESTREAM_LEGACY_REDIRECT_URL = "https://obsproject.com/app-auth/restream-auth.ph
12
11
[build ]
13
12
command = " cargo install -q worker-build && worker-build --release" # required
14
13
15
- [build .upload ]
16
- dir = " build/worker"
17
- format = " modules"
18
- main = " ./shim.mjs"
19
-
20
- [[build .upload .rules ]]
21
- globs = [" **/*.wasm" ]
22
- type = " CompiledWasm"
23
-
24
14
# read more about configuring your Worker via wrangler.toml at:
25
15
# https://developers.cloudflare.com/workers/cli-wrangler/configuration
You can’t perform that action at this time.
0 commit comments