Skip to content

Commit

Permalink
Use nix for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
w0rm committed Mar 23, 2024
1 parent 4202720 commit 68e131c
Showing 1 changed file with 9 additions and 23 deletions.
32 changes: 9 additions & 23 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,19 @@ jobs:
gh-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- run: git config --global user.name "Andrey Kuzmin"
- run: git config --global user.email "[email protected]"

- uses: actions/setup-node@v1
with:
node-version: "12"
- run: git config --global user.email "[email protected]"

- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
path: |
~/.npm
~/.elm
elm-stuff
key: ${{ runner.os }}-cache

- run: npm install -g [email protected] [email protected] [email protected] [email protected]

- run: elm-format --validate .

- run: elm-review

- run: elm-test
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@v2
- uses: actions/checkout@v3
with:
path: gh-pages
ref: gh-pages
- run: ./scripts/gh-pages.sh
- run: nix develop --command ./scripts/gh-pages.sh

0 comments on commit 68e131c

Please sign in to comment.