Skip to content

Commit

Permalink
Cleanup actions to publish local
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoDaniels authored Jan 7, 2024
1 parent 6540926 commit 83b6a62
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 36 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pr.yml → .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Pull Request
name: Checks

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
release:
types: [ published ]

jobs:
test:
name: test
check:
name: Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/release.yml

This file was deleted.

1 change: 0 additions & 1 deletion docs.json

This file was deleted.

6 changes: 6 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ let
sha256 = "0929i9d331zgv86imvsdzyfsrnr7zwhb7sdh8sw5zzsp7qsxycja";
}) { };

localPublish = pkgs.writeScriptBin "localPublish" ''
${pkgs.elmPackages.elm}/bin/elm make --docs docs.json
${pkgs.elmPackages.elm}/bin/elm publish
'';

in pkgs.mkShell rec {
buildInputs = with pkgs.elmPackages; [
elm
elm-test
elm-format
elm-coverage
elm-doc-preview
localPublish
];
}

0 comments on commit 83b6a62

Please sign in to comment.