Skip to content

Commit b89c092

Browse files
committed
stuff
1 parent fd7e935 commit b89c092

File tree

1 file changed

+3
-55
lines changed

1 file changed

+3
-55
lines changed

.github/workflows/haskell.yml

Lines changed: 3 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -247,62 +247,10 @@ jobs:
247247
248248
- name: Create Release
249249
id: create_release
250-
uses: actions/create-release@v1
251-
env:
252-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
250+
uses: softprops/action-gh-release@v2
253251
with:
254252
tag_name: ${{ needs.check.outputs.tag != '' && needs.check.outputs.tag || github.ref_name }}
255-
release_name: Release ${{ needs.check.outputs.tag != '' && needs.check.outputs.tag || github.ref_name }}
253+
name: Release ${{ needs.check.outputs.tag != '' && needs.check.outputs.tag || github.ref_name }}
254+
body_path: changelog.txt
256255
draft: false
257256
prerelease: false
258-
body_path: changelog.txt
259-
260-
publish:
261-
needs: [build, release]
262-
263-
runs-on: ${{ matrix.os }}
264-
265-
if: ${{ needs.check.outputs.tag != '' || startsWith(github.ref, 'refs/tags/v') }}
266-
267-
strategy:
268-
fail-fast: false
269-
matrix:
270-
ghc: ["8.10.4"]
271-
os: [ubuntu-latest, macos-latest]
272-
273-
steps:
274-
- uses: actions/download-artifact@v4
275-
id: download_artifact
276-
with:
277-
name: artifacts-${{ runner.OS }}-${{ matrix.ghc }}.tar.gz
278-
path: .
279-
280-
- name: Compute axes
281-
id: axes
282-
run: |
283-
case ${{ matrix.os }} in
284-
ubuntu-*) os="linux" ;;
285-
macos-*) os="darwin" ;;
286-
windows-*) os="windows" ;;
287-
*) exit 1 ;; # error
288-
esac
289-
arch_os="$(uname -m)-$os"
290-
echo "::set-output name=arch_os::$arch_os"
291-
292-
- name: Upload Artifacts to Release
293-
uses: softprops/action-gh-release@v1
294-
if: startsWith(github.ref, 'refs/tags/')
295-
env:
296-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
297-
with:
298-
files: artifacts-${{ runner.OS }}-${{ matrix.ghc }}.tar.gz
299-
300-
- name: Upload Artifacts to Release
301-
uses: actions/[email protected]
302-
env:
303-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
304-
with:
305-
upload_url: ${{ needs.release.outputs.upload_url }}
306-
asset_path: artifacts-${{ runner.OS }}-${{ matrix.ghc }}.tar.gz
307-
asset_name: artifacts-${{ runner.OS }}-${{ matrix.ghc }}.tar.gz
308-
asset_content_type: application/tar+gzip

0 commit comments

Comments
 (0)