Skip to content

Build and release

Build and release #87

# 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: 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-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