[infra] Update Lit, TypeScript, and eslint (#382) #268
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
name: deploy-demo | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-demo: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 19 | |
cache: npm | |
- uses: google/wireit@setup-github-actions-caching/v1 | |
- run: npm ci | |
- run: npm run build | |
- name: Deploy to gh-pages | |
run: | | |
cp -r configurator/deploy .. | |
git fetch origin gh-pages --depth=1 | |
git checkout --track origin/gh-pages | |
ls -A1 | grep -vx .git | xargs rm -rf | |
mv ../deploy/* . | |
if [[ -n $(git status -s) ]] | |
then | |
git config user.name "$GITHUB_ACTOR (bot)" | |
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
git add -A | |
git commit -am "Deploy $GITHUB_SHA" | |
git push | |
fi |