use sensible portable snapshot names for format tests #73
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: self-hosted | |
| steps: | |
| - name: Pulling changes | |
| working-directory: workdir/ | |
| run: | | |
| if [ -d "lumina/" ]; then | |
| cd lumina/ | |
| git pull | |
| else | |
| git clone https://github.com/${{ github.repository }}.git lumina | |
| echo "target" >> lumina/.gitignore | |
| echo "mdbook/publish" >> lumina/.gitignore | |
| fi | |
| - name: Build Documentation | |
| working-directory: workdir/lumina/mdbook | |
| run: | | |
| mdbook build -d publish/ | |
| - name: Test | |
| working-directory: workdir/lumina | |
| run: | | |
| cargo test -- --nocapture |