-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.38 KB
/
kraken2-db-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
name: Kraken2 DB Release
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
build-and-release:
runs-on: ubuntu-latest
container: quay.io/biocontainers/kraken2:2.1.3--pl5321hdcf5f25_1
strategy:
matrix:
include:
- ACC_ID: GCF_000001405.40
ACC_NAME: GRCh38.p14
LIBS: "bacteria,plasmid"
NAME: human_only
VERSION: 1.0.0
- ACC_ID: GCF_000001405.40
ACC_NAME: GRCh38.p14
LIBS: ""
NAME: human_bact
VERSION: 1.0.0
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build and compress database
if: github.event.release.tag_name == "v${VERSION}"
run: |
bash build_custom_db.sh -i $ACC_ID -n $ACC_NAME -l "$LIBS" -o $NAME -t 4
tar xvzf NAME
- name: Release database
if: github.event.release.tag_name == "v${VERSION}"
uses: actions/upload-artifact@v2
with:
name: "${NAME}.tar.gz"
path: "${NAME}.tar.gz"
- name: Create release
if: github.event.release.tag_name == "v${VERSION}"
uses: actions/create-release@v1
with:
tag_name: "v$VERSION"
release_name: "$NAME v$VERSION"
draft: false
prerelease: false
body: "Release of $NAME database version $VERSION"