-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
5f8f8b5
commit ed89652
Showing
1 changed file
with
2 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 |
---|---|---|
|
@@ -24,27 +24,11 @@ jobs: | |
mv dist/emulator dist/release/ | ||
echo "dwx24.samples.piral.cloud" > dist/release/CNAME | ||
cp dist/release/index.html dist/release/404.html | ||
cd .. | ||
- name: Upload artifact for deployment job | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: webapp | ||
path: apps/spa/dist/release | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- name: Download artifact from build job | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: webapp | ||
cd ../.. | ||
- name: Deploy Website | ||
run: | | ||
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | ||
gh-pages -d "dist/release" -u "github-actions-bot <[email protected]>" | ||
gh-pages -d "apps/spa/dist/release" -u "github-actions-bot <[email protected]>" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |