Prepare for release 3.4.1 #31
Workflow file for this run
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: "Release" | |
on: | |
push: | |
# trigger on version tags matching SemVer | |
tags: | |
- "[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
release: | |
name: "Pack & Upload" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2.3.1 | |
with: | |
repository: input-output-hk/quickcheck-dynamic | |
ref: ${{ github.ref }} | |
# Also ensure we have all history with all tags | |
fetch-depth: 0 | |
- name: Prepare nix | |
uses: cachix/install-nix-action@v22 | |
with: | |
extra_nix_config: | | |
accept-flake-config = true | |
log-lines = 1000 | |
- name: Github cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle | |
uses: actions/cache@v2.1.5 | |
with: | |
path: | | |
~/.cabal/packages | |
~/.cabal/store | |
dist-newstyle | |
key: | | |
cabal-${{ runner.os }}-${{ hashFiles('cabal.project', 'default.nix', 'shell.nix') }} | |
- name: Prepare nix shell | |
run: | |
nix develop --accept-flake-config --build | |
- name: Cabal check | |
run: | | |
cd quickcheck-dynamic | |
nix develop --accept-flake-config --command cabal check | |
- name: Package | |
run: | |
nix develop --accept-flake-config --command cabal sdist quickcheck-dynamic | |
- name: Get the version | |
id: get_version | |
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT | |
- name: Upload distribution | |
uses: actions/upload-artifact@v2 | |
with: | |
name: quickcheck-dynamic.tar.gz | |
path: ./dist-newstyle/sdist/quickcheck-dynamic-${{ steps.get_version.outputs.VERSION }}.tar.gz |