Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
johnynek committed Feb 11, 2024
1 parent 16c3251 commit f9ee909
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/deploy_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit f9ee909

Please sign in to comment.