-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.84 KB
/
buid_and_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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# About: actions/checkout@v2: Why needed for running code (makefile or not): https://stackoverflow.com/questions/66918575/how-to-use-your-own-makefile-in-github-actions
name: Build and release
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0" # weekly on Sunday at midnight
jobs:
build_and_release:
runs-on: ubuntu-latest
container: obolibrary/odkfull:v1.5
steps:
- uses: actions/checkout@v2
- name: build
# todo: reactivate `make all`, pending pending https://github.com/monarch-initiative/medgen/issues/11
# run: make all
run: export ROBOT_JAVA_ARGS=-Xmx15G; make minimal
- name: Get current time
uses: josStorer/[email protected]
id: current-time
with:
format: YYYY-MM-DD
- name: Release
run: echo Uploading files as new release.
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ steps.current-time.outputs.formattedTime }}"
title: "${{ steps.current-time.outputs.formattedTime }}"
prerelease: false
# todo: add back `release/medgen-disease-extract.owl`?, pending https://github.com/monarch-initiative/medgen/issues/11
# output/release/medgen-disease-extract.owl
files: |
output/release/medgen.obo
output/release/medgen.owl.gz
output/release/medgen-disease-extract.obo
output/release/medgen-xrefs.robot.template.tsv
output/release/medgen-xrefs-mesh.robot.template.tsv
output/release/umls-hpo.sssom.tsv
output/release/hpo-mesh.sssom.tsv