Skip to content

Commit 1933aef

Browse files
authored
Merge pull request #105 from kmyk/fix-upload-binaries
Fix upload-binaries.yml
2 parents ae2d5f8 + f9afe0a commit 1933aef

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.github/workflows/upload-binaries.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,31 @@ jobs:
3434
run: stack --system-ghc build --ghc-options=-Werror
3535

3636
- name: Set extension to .exe on Windows
37-
run: echo "::set-env name=EXT::.exe"
38-
if: matrix.os == 'windows-latest'
37+
id: get_ext
38+
run: |
39+
if [ ${{ matrix.os }} == windows-latest ]; then
40+
ext=.exe
41+
fi
42+
echo "::set-output name=ext::$ext"
43+
shell: bash
3944

4045
- name: Get binary path
46+
id: get_binary_path
4147
run: |
42-
echo "::set-env name=BINARY_PATH::$(stack --system-ghc path --local-install-root)/bin/jikka${{ env.EXT }}"
48+
echo "::set-output name=binary_path::$(stack --system-ghc path --local-install-root)/bin/jikka${{ steps.get_ext.outputs.ext }}"
4349
shell: bash
4450

4551
- name: Compress binary
4652
uses: svenstaro/[email protected]
4753
with:
48-
file: ${{ env.BINARY_PATH }}
54+
file: ${{ steps.get_binary_path.outputs.binary_path }}
4955

5056
- name: Upload Release Asset
5157
uses: actions/[email protected]
5258
env:
5359
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5460
with:
5561
upload_url: ${{ github.event.release.upload_url }}
56-
asset_path: ${{ env.BINARY_PATH }}
57-
asset_name: jikka-${{ github.event.release.tag_name }}-${{ runner.os }}${{ env.EXT }}
62+
asset_path: ${{ steps.get_binary_path.outputs.binary_path }}
63+
asset_name: jikka-${{ github.event.release.tag_name }}-${{ runner.os }}${{ steps.get_ext.outputs.ext }}
5864
asset_content_type: application/octet-stream

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## 2021-07-28: v5.0.11.1
44

5-
Uploaded to Hackage
5+
Uploaded to Hackage: <https://hackage.haskell.org/package/Jikka>
66

77
## 2021-07-21: v5.0.11.0
88

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ for developpers:
3838
- [CONTRIBUTING.ja.md](https://github.com/kmyk/Jikka/blob/master/CONTRIBUTING.ja.md) (Japanese translation)
3939
- [docs/DESIGN.md](https://github.com/kmyk/Jikka/blob/master/docs/DESIGN.md) (Japanese)
4040
- [docs/how-it-works.pdf](https://github.com/kmyk/Jikka/blob/master/docs/how-it-works.pdf) (Japanese)
41-
- [Haddock](https://kmyk.github.io/Jikka/)
41+
- [Haddock](https://hackage.haskell.org/package/Jikka)
42+
- [Haddock (master)](https://kmyk.github.io/Jikka/)
4243

4344

4445
## Examples

0 commit comments

Comments
 (0)