Skip to content

Commit

Permalink
PR actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoDaniels committed Jan 7, 2024
1 parent d88f4a6 commit b41555d
Showing 1 changed file with 31 additions and 0 deletions.
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@v21
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/fc541b860a28.tar.gz
- uses: cachix/cachix-action@v12
with:
name: elm-aws-cloudfront
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 b41555d

Please sign in to comment.