Skip to content

Commit

Permalink
add release publishing to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoPeters1024 committed Jan 10, 2022
1 parent 081d6c7 commit 2e02b73
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,19 @@ jobs:
extraPullNames: digitallyinduced

- name: "build doorgeefluik"
run: "nix-build"
run: "nix-build | tee release.txt"
# IHP expects <nixpkgs> to be present, so we set it to a release
# IHP doesn't actually use this, so it doesn't really matter which release this is
# see: https://github.com/digitallyinduced/ihp/blob/edca5f0b61b499cb214441ca2826affd5cb04563/NixSupport/make-nixpkgs-from-options.nix#L74
env:
NIX_PATH: nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-21.05.tar.gz

- name: "print build path"
run: "nix-instantiate"
env:
NIX_PATH: nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-21.05.tar.gz
run: "cat release.txt"

- name: "publish release"
uses: ncipollo/release-action@v1
with:
artifacts: "release.txt"
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2e02b73

Please sign in to comment.