Skip to content

Commit

Permalink
try another gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
johnynek committed Feb 11, 2024
1 parent a3b555b commit 5978ddf
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/deploy_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- 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 @@ -34,13 +31,8 @@ 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
- name: Deploy to GitHub Pages
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 --force origin gh-pages
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./web_deploy

0 comments on commit 5978ddf

Please sign in to comment.