Use single-commit for build-previews

This commit is contained in:
brecert 2021-09-11 10:12:14 -04:00
parent 9bd31c4c7e
commit 4a5d78d909
No known key found for this signature in database
GPG key ID: 1B2E56B9EC985B96
2 changed files with 4 additions and 2 deletions

View file

@ -26,6 +26,7 @@ jobs:
with:
folder: .
branch: build-previews
single-commit: true
- name: send comment
uses: marocchino/sticky-pull-request-comment@v2

View file

@ -32,9 +32,10 @@ jobs:
- name: publish preview
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: build-previews
folder: dist
branch: build-previews
target-folder: ${{ github.ref }}
single-commit: true
- name: send comment
uses: marocchino/sticky-pull-request-comment@v2
@ -42,6 +43,6 @@ jobs:
header: Preview environment
message: |
## 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.