Use nix for elm publish #26
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: GitHub Pages | |
on: | |
push: | |
branches: [main] | |
jobs: | |
gh-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- run: git config --global user.name "Andrey Kuzmin" | |
- run: git config --global user.email "[email protected]" | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- run: nix develop --command elm-format --validate . | |
- run: nix develop --command elm-review | |
- run: nix develop --command elm-test | |
- uses: actions/checkout@v3 | |
with: | |
path: gh-pages | |
ref: gh-pages | |
- run: nix develop --command ./scripts/gh-pages.sh |