Skip to content

Commit

Permalink
Add release + binary upload for tags (#14)
Browse files Browse the repository at this point in the history
* Try to follow the link

* Run on pull requests

* Use nix-store to find path

* Don't cd on tags anymore

* Evaluate nix-store expr

* Create separate binaries for mac and linux

* Don't require pwd evaluation

* Update changelog
  • Loading branch information
jisantuc authored Nov 11, 2021
1 parent f0cabfd commit 310e1af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:

- name: Locate package binary
id: package-location
run: echo "::set-output name=BINARY_PATH::$(which cliffs)"
run: echo "::set-output name=BINARY_PATH::$(nix-store -r $(which cliffs))"

- name: Echo binary location
run: echo ${{ steps.package-location.outputs.BINARY_PATH }}
- name: Copy binary to os-namespaced file
run: cp ${{ steps.package-location.outputs.BINARY_PATH }}/bin/cliffs ./cliffs-${{ matrix.os }}

- name: Create release
uses: softprops/action-gh-release@v1
with:
files: ${{ steps.package-location.outputs.BINARY_PATH }}
files: ./cliffs-${{ matrix.os }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- Nix expressions evaluate to a real derivation and a shell [#11](https://github.com/jisantuc/cliffs/pull/11)
- Determined non-link binary path using nix-store [#14](https://github.com/jisantuc/cliffs/pull/14)

0 comments on commit 310e1af

Please sign in to comment.