forked from abner/for-legacy-web
Use single-commit for build-previews
This commit is contained in:
1
.github/workflows/preview_cleanup.yml
vendored
1
.github/workflows/preview_cleanup.yml
vendored
@@ -26,6 +26,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
folder: .
|
folder: .
|
||||||
branch: build-previews
|
branch: build-previews
|
||||||
|
single-commit: true
|
||||||
|
|
||||||
- name: send comment
|
- name: send comment
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
|
|||||||
5
.github/workflows/preview_pull_request.yml
vendored
5
.github/workflows/preview_pull_request.yml
vendored
@@ -32,9 +32,10 @@ jobs:
|
|||||||
- name: publish preview
|
- name: publish preview
|
||||||
uses: JamesIves/github-pages-deploy-action@4.1.5
|
uses: JamesIves/github-pages-deploy-action@4.1.5
|
||||||
with:
|
with:
|
||||||
branch: build-previews
|
|
||||||
folder: dist
|
folder: dist
|
||||||
|
branch: build-previews
|
||||||
target-folder: ${{ github.ref }}
|
target-folder: ${{ github.ref }}
|
||||||
|
single-commit: true
|
||||||
|
|
||||||
- name: send comment
|
- name: send comment
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
@@ -42,6 +43,6 @@ jobs:
|
|||||||
header: Preview environment
|
header: Preview environment
|
||||||
message: |
|
message: |
|
||||||
## Preview environment
|
## Preview environment
|
||||||
https://${{ github.repository_owner }}.github.io/revite/${{ github.ref }}/index.html
|
https://${{ github.repository_owner }}.github.io/revite/${{ github.ref }}/
|
||||||
|
|
||||||
This link will remain active until the `use-preview` label is removed.
|
This link will remain active until the `use-preview` label is removed.
|
||||||
|
|||||||
Reference in New Issue
Block a user