File tree Expand file tree Collapse file tree 3 files changed +11
-33
lines changed Expand file tree Collapse file tree 3 files changed +11
-33
lines changed File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -24,19 +24,22 @@ jobs:
24
24
with :
25
25
node-version : 16
26
26
27
- - name : Install NPM packages
28
- run : npm ci
27
+ - if : github.event.pull_request.opened == true
28
+ name : create repo
29
+ run : gh repo create blueDroidBot/${{ github.event.pull_request.number }} --public
30
+ env :
31
+ GITHUB_TOKEN : ${{ secrets.BOT }}
29
32
30
- - name : Build project
31
- run : CI=false PUBLIC_URL=https://android-previews.pr.blueedge.me/${{ github.event.pull_request.number }} npm run build
33
+ - name : Build
34
+ run : |
35
+ npm ci
36
+ CI=false PUBLIC_URL=https://android-preview.blueedge.me/${{ github.event.pull_request.number }} npm run build
32
37
33
38
- uses : peaceiris/actions-gh-pages@v3
34
39
with :
35
40
personal_token : ${{ secrets.BOT }}
36
41
publish_dir : ./build
37
- destination_dir : ./${{ github.event.pull_request.number }}
38
- cname : android-previews.pr.blueedge.me
39
- external_repository : win11bot/android-previews
42
+ external_repository : blueDroidBot/${{ github.event.pull_request.number }}
40
43
41
44
- name : Sleep to make sure page gets updated
42
45
run : sleep 1m
47
50
with :
48
51
body : |
49
52
βοΈ Deploy Preview for Ready!
50
- π Browse the preview: https://android-previews.pr .blueedge.me/${{ github.event.pull_request.number }} !
53
+ π Browse the preview: https://android-preview .blueedge.me/${{ github.event.pull_request.number }} !
51
54
π Inspect the deploy log: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
52
55
comment-id : ${{ steps.couc.outputs.comment-id }}
53
56
edit-mode : replace
You canβt perform that action at this time.
0 commit comments