name: Build CI on: push: pull_request: release: types: [published] check_suite: types: [rerequested] jobs: test: runs-on: ubuntu-latest steps: - name: checkout uses: actions/checkout@v2 - name: install dependencies run: | sudo apt-get update sudo apt-get --no-install-recommends -y install build-essential git - name: build run: | docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk ./build.sh - if: github.event_name == 'push' && github.ref == 'refs/heads/main' name: publish run: | git branch -D gh-pages || true python3 import.py | git fast-import --date-format=now git config user.email "jeff@adafruit.com" git config user.name "Jeff Epler (Adafruit) via github actions" git remote set-url --push origin https://jepler:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} git push -f origin gh-pages - uses: actions/upload-artifact@v4 with: name: Web pages path: output/