This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Showing
1 changed file
with
4 additions
and
7 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 |
---|---|---|
|
@@ -37,26 +37,23 @@ jobs: | |
persist-credentials: false | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Extract PR number | ||
run: echo "PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')" >> $GITHUB_ENV | ||
|
||
- uses: actions/setup-node@v1 | ||
- name: Install and Build | ||
run: | | ||
yarn install | ||
SAPPER_APP_BASEPATH=attractions/${{ env.PR_NUMBER }} yarn export --basepath attractions/${{ env.PR_NUMBER }} | ||
SAPPER_APP_BASEPATH=attractions/${{ github.event.number }} yarn export --basepath attractions/${{ github.event.number }} | ||
- name: Deploy demo to GitHub Pages | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/__sapper__/export/attractions/${{ env.PR_NUMBER }} | ||
destination_dir: ${{ env.PR_NUMBER }} | ||
publish_dir: docs/__sapper__/export/attractions/${{ github.event.number }} | ||
destination_dir: ${{ github.event.number }} | ||
keep_files: true | ||
|
||
- name: Post docs URL on PR | ||
uses: unsplash/comment-on-pr@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
msg: "Docs available on https://illright.github.io/attractions/${{ env.PR_NUMBER }}/" | ||
msg: "Docs available on https://illright.github.io/attractions/${{ github.event.number }}/" |