Reenable CI for forks and remove duplicate build link comment (#1339)
Reenable ci for forks and remove duplicate comment
This commit is contained in:
parent
3f7d484398
commit
1fc3808b7f
|
|
@ -2,7 +2,11 @@ name: Continuous Integration
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
|
@ -24,21 +28,6 @@ jobs:
|
||||||
- name: 🔧 Clear wasm-bindgen cache
|
- name: 🔧 Clear wasm-bindgen cache
|
||||||
run: rm -r ~/.cache/.wasm-pack
|
run: rm -r ~/.cache/.wasm-pack
|
||||||
|
|
||||||
- name: Comment deploy start
|
|
||||||
if: github.event_name != 'push'
|
|
||||||
uses: mshick/add-pr-comment@v2
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
message-id: cloudflare-deploy
|
|
||||||
message: |
|
|
||||||
### <span aria-hidden="true">🚧</span> Deploy Preview building...
|
|
||||||
|
|
||||||
| Name | Link |
|
|
||||||
|---------------------------------|------------------------|
|
|
||||||
|<span aria-hidden="true">🔨</span> Latest commit | ${{ github.sha }} |
|
|
||||||
|<span aria-hidden="true">🔍</span> Latest deploy log | ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |
|
|
||||||
---
|
|
||||||
|
|
||||||
- name: 🔧 Set up Node
|
- name: 🔧 Set up Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -73,23 +62,6 @@ jobs:
|
||||||
directory: frontend/dist # e.g. 'dist'
|
directory: frontend/dist # e.g. 'dist'
|
||||||
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Comment deploy url
|
|
||||||
uses: mshick/add-pr-comment@v2
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
message-id: cloudflare-deploy
|
|
||||||
message: |
|
|
||||||
### <span aria-hidden="true">✅</span> Deploy Preview ready!
|
|
||||||
|
|
||||||
|
|
||||||
| Name | Link |
|
|
||||||
|---------------------------------|------------------------|
|
|
||||||
|<span aria-hidden="true">🔨</span> Latest commit | ${{ github.sha }} |
|
|
||||||
|<span aria-hidden="true">🔍</span> Latest deploy log | ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |
|
|
||||||
|<span aria-hidden="true">😎</span> Deploy Preview Url | [${{ steps.cloudflare.outputs.url }}](${{ steps.cloudflare.outputs.url }}) |
|
|
||||||
|<span aria-hidden="true">🌳</span> Environment | ${{ steps.cloudflare.outputs.environment }} |
|
|
||||||
---
|
|
||||||
|
|
||||||
- name: 👕 Lint Graphite web formatting
|
- name: 👕 Lint Graphite web formatting
|
||||||
env:
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue