Skip to content

Commit

Permalink
Publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoDaniels committed Dec 12, 2022
1 parent e4f208e commit cf24304
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 51 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/main.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Pull Request
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]

jobs:
test:
Expand All @@ -23,3 +25,5 @@ jobs:
authToken: ${{secrets.CACHIX_AUTH_TOKEN}}
- name: Run tests
run: nix-shell --run "elm-coverage"
- name: Make build
run: nix-shell --run "elm make --output /dev/null"
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
release:
types: [ published ]

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.elm
key: ${{ runner.os }}-${{ hashFiles('**/elm.json') }}
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/02ac89b8e803.tar.gz
- uses: cachix/cachix-action@v12
with:
name: elm-robots-humans
authToken: ${{secrets.CACHIX_AUTH_TOKEN}}
- name: Run tests
run: nix-shell --run "elm-coverage"
- name: Make build
run: nix-shell --run "elm make --output /dev/null"
- name: Make docs
run: nix-shell --run "elm make --docs docs.json"
- name: Publish
run: nix-shell --run "elm publish"

0 comments on commit cf24304

Please sign in to comment.