with-view -> draw-view #337
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: "Build" | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v19 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Run Tests | |
uses: GabrielBB/xvfb-action@v1 | |
with: | |
run: nix-shell --run "NODE_OPTIONS=--max_old_space_size=4096 clojure -M:test" | |
# Uncomment for ssh | |
# - name: Setup upterm session | |
# uses: lhotari/action-upterm@v1 | |
- name: Deploy Preview | |
run: | | |
git clean -fxd | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "[email protected]" | |
date > src/injectable/date.inject | |
nix-shell --run "NODE_OPTIONS=--max_old_space_size=4096 clojure -M:package" | |
rm -r node_modules | |
cp public/index-loadingbar.html index.html | |
echo "visr.pl" > CNAME | |
git add -A -f | |
git checkout -b preview | |
git commit --allow-empty -m "** deploy visr/website@$GITHUB_SHA" | |
git push origin preview -f |