-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8470ef3
commit f763b06
Showing
1 changed file
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,15 @@ jobs: | |
env: | ||
PR_PATH: pull/${{github.event.number}} | ||
steps: | ||
- name: Comment on PR | ||
uses: hasura/[email protected] | ||
if: github.ref != 'refs/heads/main' | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: ${{ github.repository }} | ||
number: ${{ github.event.number }} | ||
id: deploy-preview | ||
message: "Starting deployment of preview ⏳..." | ||
# - name: Comment on PR | ||
# uses: hasura/[email protected] | ||
# if: github.ref != 'refs/heads/main' | ||
# with: | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# repository: ${{ github.repository }} | ||
# number: ${{ github.event.number }} | ||
# id: deploy-preview | ||
# message: "Starting deployment of preview ⏳..." | ||
|
||
- name: Set domain | ||
run: echo "DOMAIN=${{ github.actor }}.github.io" >> $GITHUB_ENV | ||
|
@@ -59,12 +59,12 @@ jobs: | |
publish_dir: ./publish/build | ||
destination_dir: ${{ env.PR_PATH }} | ||
|
||
- name: Update comment | ||
uses: hasura/[email protected] | ||
if: github.ref != 'refs/heads/main' | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: ${{ github.repository }} | ||
number: ${{ github.event.number }} | ||
id: deploy-preview | ||
message: "A preview of ${{ github.event.after }} is uploaded and can be seen here:\n\n ✨ ${{ env.BASE_URL }} ✨\n\nChanges may take a few minutes to propagate. Since this is a preview of production, content with `draft: true` will not be rendered. The source is here: https://github.com/${{ github.repository }}/tree/gh-pages/${{ env.PR_PATH }}/" | ||
# - name: Update comment | ||
# uses: hasura/[email protected] | ||
# if: github.ref != 'refs/heads/main' | ||
# with: | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# repository: ${{ github.repository }} | ||
# number: ${{ github.event.number }} | ||
# id: deploy-preview | ||
# message: "A preview of ${{ github.event.after }} is uploaded and can be seen here:\n\n ✨ ${{ env.BASE_URL }} ✨\n\nChanges may take a few minutes to propagate. Since this is a preview of production, content with `draft: true` will not be rendered. The source is here: https://github.com/${{ github.repository }}/tree/gh-pages/${{ env.PR_PATH }}/" |