@@ -72,14 +72,6 @@ jobs:
75− - name: Check changelog
76− if: github.event_name == 'release'
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."
84 needs: check_versions
76 needs: check_versions
85 runs-on: ubuntu-latest
77 runs-on: ubuntu-latest
@@ -192,50 +184,17 @@ jobs:
193 submodules: recursive
185 submodules: recursive
196− uses: actions/cache@v1
201− key: ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
203− ${{ runner.os }}-stack-${{ hashFiles('stack.yaml') }}
204− ${{ runner.os }}-stack
206− - name: Upgrade stack
208− # Needed for Hackage token authorization
209− run: stack upgrade --git
211 - name: Build dist
187 - name: Build dist
213 stack sdist --pvp-bounds both --test-tarball
189 stack sdist --pvp-bounds both --test-tarball
214 echo "distPath=$(stack path | awk -F ": " '/dist-dir/ {print $2}')" >> $GITHUB_ENV
190 echo "distPath=$(stack path | awk -F ": " '/dist-dir/ {print $2}')" >> $GITHUB_ENV
216− - name: Upload compaREST sources artifact
192+ - name: compaREST sources artifact
217 uses: actions/upload-artifact@v2
193 uses: actions/upload-artifact@v2
219 name: compaREST sources
195 name: compaREST sources
220 path: ${{ env.distPath }}/*.tar.gz
196 path: ${{ env.distPath }}/*.tar.gz
222− - name: Upload compaREST sources to release
223− if: github.event_name == 'release'
224− uses: svenstaro/upload-release-action@2.2.1
226− repo_token: ${{ secrets.GITHUB_TOKEN }}
228− file: ${{ env.distPath }}/*.tar.gz
229− tag: ${{ github.ref }}
231− - name: Publish compaREST candidate to Hackage
233− if: github.event_name == 'release'
235− HACKAGE_KEY: ${{ secrets.HACKAGE_KEY }}
237− stack upload --pvp-bounds both --test-tarball --candidate .
240 needs: check_versions
199 needs: check_versions
241 runs-on: macos-latest
200 runs-on: macos-latest