-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (64 loc) · 1.91 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: release
on:
push:
tags:
- "*"
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
env:
ghc-version: 9.4.7
cabal-version: 3.10.1.0
maintainer-email: ${{ vars.MAINTAINER_EMAIL }}
tag: ${{ github.ref_name }}
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Acquire access token
id: access-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.GITBOT_APP_ID }}
private-key: ${{ secrets.GITBOT_APP_PRIVATE_KEY }}
- name: Run Pre-Release Checks
run: |
./.github/check-release.sh "${{ env.tag }}" "${{ env.maintainer-email }}"
if [ $? -neq 0 ];
then
echo "${RESULT}"
exit 1
fi
# - name: Set up GHC ${{ env.ghc-version }}
# uses: haskell-actions/setup@latest
# id: setup
# with:
# ghc-version: ${{ env.ghc-version }}
# cabal-version: ${{ env.cabal-version }}
# cabal-update: true
# - name: Configure the build
# run: |
# cabal configure --enable-tests --enable-benchmarks --disable-documentation
# cabal build all --dry-run
# - name: Install dependencies
# run: cabal build all --only-dependencies
# - name: Build
# run: cabal build all
# - name: Run tests
# run: cabal test all
# - name: Check cabal file
# run: cabal check
# - name: Build documentation
# run: cabal haddock all
# - name: Build source archive
# run: cabal sdist
- name: Create GitHub Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ steps.access-token.outputs.token }}
with:
tag_name: ${{ env.tag }}
release_name: Release ${{ env.tag }}
draft: false
prerelease: false