4
4
branches :
5
5
- " main"
6
6
tags : ["*"]
7
- env :
8
- ROOT_DOMAIN : strn.pl
9
7
jobs :
10
8
cicd :
11
9
runs-on : ubuntu-latest
12
10
steps :
13
11
- uses : actions/checkout@v4
14
- with :
15
- # https://github.com/filecoin-saturn-team token to allow force pushing to protected branches
16
- token : ${{ secrets.FORCE_PUSH_TOKEN }}
17
12
18
13
- uses : actions/setup-node@v2
19
14
with :
@@ -25,33 +20,13 @@ jobs:
25
20
- name : Run Tests
26
21
run : npm run test
27
22
23
+ # Just checking if build succeeds.
28
24
- name : Build
29
25
env :
30
- STATIC_ORIGIN : https://saturn.tech
31
- L1_ORIGIN : https://l1s.saturn.ms
32
- TRUSTED_L1_ORIGIN : https://saturn.ms
33
- UNTRUSTED_L1_ORIGIN : https://l1s.saturn.ms
34
- LOG_INGESTOR_URL : https://twb3qukm2i654i3tnvx36char40aymqq.lambda-url.us-west-2.on.aws
26
+ STATIC_FILE_ORIGIN : https://saturn-test.network
27
+ L1_ORIGIN : https://l1s.saturn-test.ms
28
+ TRUSTED_L1_ORIGIN : https://saturn-test.ms
29
+ LOG_INGESTOR_URL : https://p6wofrb2zgwrf26mcxjpprivie0lshfx.lambda-url.us-west-2.on.aws
30
+ JWT_AUTH_URL : https://fz3dyeyxmebszwhuiky7vggmsu0rlkoy.lambda-url.us-west-2.on.aws/
31
+ ORCHESTRATOR_URL : https://orchestrator.strn-test.pl/nodes?maxNodes=100
35
32
run : npm run build
36
-
37
- - uses : EndBug/add-and-commit@v9
38
- if : github.ref_type == 'tag'
39
- with :
40
- add : " dist"
41
- default_author : user_info
42
- message : " [skip ci] CI Build"
43
- push : origin HEAD:main --force
44
-
45
- - name : Trigger ./dist/* file replication in filecoin-saturn/homepage repo
46
- if : github.ref_type == 'tag'
47
- run : |
48
- code="$(curl -L \
49
- -X POST \
50
- -H "Accept: application/vnd.github+json" \
51
- -H "Authorization: Bearer ${{secrets.ACCESS_TOKEN}}" \
52
- -H "X-GitHub-Api-Version: 2022-11-28" \
53
- https://api.github.com/repos/filecoin-saturn/homepage/actions/workflows/copy-retrieval-client-files.yml/dispatches \
54
- -d '{"ref": "main"}' \
55
- -sw "%{http_code}\n")"
56
-
57
- test "$code" -eq 204 || exit 1
0 commit comments