Skip to content

Commit c8988c8

Browse files
update workflows
1 parent 5389dad commit c8988c8

File tree

3 files changed

+11
-33
lines changed

3 files changed

+11
-33
lines changed

β€Ž.github/workflows/PR-Closed.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

β€Ž.github/workflows/PR-Preview.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,22 @@ jobs:
2424
with:
2525
node-version: 16
2626

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 }}
2932

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
3237
3338
- uses: peaceiris/actions-gh-pages@v3
3439
with:
3540
personal_token: ${{ secrets.BOT }}
3641
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 }}
4043

4144
- name: Sleep to make sure page gets updated
4245
run: sleep 1m
@@ -47,7 +50,7 @@ jobs:
4750
with:
4851
body: |
4952
βœ”οΈ 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 }} !
5154
πŸ” Inspect the deploy log: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
5255
comment-id: ${{ steps.couc.outputs.comment-id }}
5356
edit-mode: replace

0 commit comments

Comments
Β (0)