Skip to content

Commit 1e7bb42

Browse files
committed
Bump CI
1 parent cbe47ce commit 1e7bb42

File tree

1 file changed

+7
-39
lines changed

1 file changed

+7
-39
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ jobs:
1212
stack: ["2.15.7"]
1313

1414
steps:
15-
- name: Get the version
16-
id: get_version
17-
run: 'echo ::set-output name=version::${GITHUB_REF#refs/tags/}'
18-
1915
- uses: actions/checkout@v2
2016

2117
- uses: haskell-actions/setup@v2
@@ -44,14 +40,12 @@ jobs:
4440
- name: Build artifact
4541
if: startsWith(github.ref, 'refs/tags')
4642
run: make artifact
47-
env:
48-
PATAT_TAG: ${{ steps.get_version.outputs.version }}
4943

50-
- uses: actions/upload-artifact@v2
44+
- uses: actions/upload-artifact@v4
5145
if: startsWith(github.ref, 'refs/tags')
5246
with:
5347
path: artifacts/*
54-
name: artifacts
48+
name: artifacts-${{ runner.os }}
5549

5650
release:
5751
name: Release
@@ -60,41 +54,15 @@ jobs:
6054
if: startsWith(github.ref, 'refs/tags')
6155

6256
steps:
63-
- name: Get the version
64-
id: get_version
65-
run: 'echo ::set-output name=version::${GITHUB_REF#refs/tags/}'
66-
6757
- uses: actions/download-artifact@v4
6858
with:
69-
name: artifacts
59+
pattern: artifacts-*
7060

71-
- name: Display structure of downloaded files
72-
run: ls -R
73-
74-
- uses: actions/create-release@v1
75-
id: create_release
76-
env:
77-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78-
with:
79-
tag_name: ${{ steps.get_version.outputs.version }}
80-
release_name: ${{ steps.get_version.outputs.version }}
81-
82-
- name: Upload Linux Asset
83-
uses: actions/upload-release-asset@v1
84-
env:
85-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86-
with:
87-
upload_url: ${{ steps.create_release.outputs.upload_url }}
88-
asset_path: ./stylish-haskell-${{ steps.get_version.outputs.version }}-linux-x86_64.tar.gz
89-
asset_name: stylish-haskell-${{ steps.get_version.outputs.version }}-linux-x86_64.tar.gz
90-
asset_content_type: application/gzip
61+
- run: ls -R
62+
- run: 'sha256sum artifacts-*/*'
9163

92-
- name: Upload MacOS Asset
93-
uses: actions/upload-release-asset@v1
64+
- uses: softprops/action-gh-release@v1
9465
env:
9566
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9667
with:
97-
upload_url: ${{ steps.create_release.outputs.upload_url }}
98-
asset_path: ./stylish-haskell-${{ steps.get_version.outputs.version }}-darwin-x86_64.zip
99-
asset_name: stylish-haskell-${{ steps.get_version.outputs.version }}-darwin-x86_64.zip
100-
asset_content_type: application/zip
68+
files: 'artifacts-*/stylish-haskell-*'

0 commit comments

Comments
 (0)