-
Notifications
You must be signed in to change notification settings - Fork 443
71 lines (66 loc) · 2.18 KB
/
release.yml
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
name: Release
on:
push:
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
# setup build environment
- uses: coursier/cache-action@v5
- uses: olafurpg/setup-scala@v12
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
# this setup is all for the github pages deployment to work
- name: install sphinx
run: |
pip3 install --user sphinx sphinx_rtd_theme
which sphinx-build
- name: setup git
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- run: sbt ghpagesPushSite
# generate a github release
- name: Generate release changelog
id: changelog
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
cacheFile: '.github-changelog-cache'
issues: true
issuesWoLabels: true
pullRequests: true
prWoLabels: true
unreleased: false
onlyLastTag: true
maxIssues: 100
output: LATEST_RELEASE.md
- name: Read latest_release.md
id: release_changelog
uses: juliangruber/read-file-action@v1
with:
path: ./LATEST_RELEASE.md
- name: Create Github Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ env.RELEASE_VERSION }}
body: ${{ steps.release_changelog.outputs.content }}
draft: false
prerelease: false