-
Notifications
You must be signed in to change notification settings - Fork 11
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
13 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 |
---|---|---|
|
@@ -12,7 +12,10 @@ jobs: | |
env: | ||
BOSATSU_CI: "true" | ||
steps: | ||
- uses: "actions/[email protected]" | ||
- uses: "actions/checkout@v2" | ||
with: | ||
persist-credentials: false # This is important for the step that pushes to gh-pages | ||
|
||
- uses: "coursier/cache-action@v2" | ||
- name: "java 11 setup" | ||
uses: "olafurpg/setup-scala@v13" | ||
|
@@ -27,10 +30,13 @@ jobs: | |
cp outwatch/index.html web_deploy/compiler/ | ||
cp outwatch/.js/target/scala-2.13/scalajs-bundler/main/bosatsu-outwatch-opt-bundle.js web_deploy/compiler/bosatsu_ui.js | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: web_deploy # The folder the action should deploy. | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git fetch --depth=1 origin gh-pages | ||
git checkout -b gh-pages origin/gh-pages | ||
cp -r web_deploy/* . | ||
git add . | ||
git commit -m "Deploy updates" | ||
git push origin gh-pages |