@@ -72,14 +72,6 @@ jobs:
7272 exit 1
7373 fi
7474
75− - name: Check changelog
76− if: github.event_name == 'release'
77− run: |
78− if ! grep '^## ${{ github.event.release.tag_name }}$' CHANGELOG.md; then
79− echo "::error file=CHANGELOG.md::CHANGELOG.md does not contain an entry for this release."
80− exit 1
81− fi
82−
8375 Linux:
8476 needs: check_versions
8577 runs-on: ubuntu-latest
@@ -192,50 +184,17 @@ jobs:
192184 with:
193185 submodules: recursive
194186
195− - name: Cache
196− uses: actions/cache@v1
197− with:
198− path: |
199− ~/.stack
200− .stack-work
201− key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
202− restore-keys: |
203− ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
204− ${{ runner.os }}-stack
205−
206− - name: Upgrade stack
207− shell: bash
208− # Needed for Hackage token authorization
209− run: stack upgrade --git
210−
211187 - name: Build dist
212188 run: |
213189 stack sdist --pvp-bounds both --test-tarball
214190 echo "distPath=$(stack path | awk -F ": " '/dist-dir/ {print $2}')" >> $GITHUB_ENV
215191
216− - name: Upload compaREST sources artifact
192+ - name: compaREST sources artifact
217193 uses: actions/upload-artifact@v2
218194 with:
219195 name: compaREST sources
220196 path: ${{ env.distPath }}/*.tar.gz
221197
222− - name: Upload compaREST sources to release
223− if: github.event_name == 'release'
224− uses: svenstaro/upload-release-action@2.2.1
225− with:
226− repo_token: ${{ secrets.GITHUB_TOKEN }}
227− file_glob: true
228− file: ${{ env.distPath }}/*.tar.gz
229− tag: ${{ github.ref }}
230−
231− - name: Publish compaREST candidate to Hackage
232− shell: bash
233− if: github.event_name == 'release'
234− env:
235− HACKAGE_KEY: ${{ secrets.HACKAGE_KEY }}
236− run: |
237− stack upload --pvp-bounds both --test-tarball --candidate .
238−
239198 macOS:
240199 needs: check_versions
241200 runs-on: macos-latest