forked from anthony-wang/CrabNet
-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (45 loc) · 1.39 KB
/
manual-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
name: Manual Release
on:
workflow_dispatch:
# on:
# release:
# types: [published]
jobs:
manual-release:
name: Release on GitHub
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
max-parallel: 9
fail-fast: true
matrix:
os: [ubuntu-latest] # much slower on Mac and Win, but can use [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9']
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: recursive
- name: "Build Changelog" # https://github.com/marketplace/actions/release-changelog-builder
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v2.4.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create 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 ${{ github.ref }}
body: ${{steps.build_changelog.outputs.changelog}}
draft: false
prerelease: false
- name: Upload to coveralls
shell: bash -l {0}
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}