Build and release #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.4.1 | |
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 | |
# todo: add `medgen.sssom.tsv`, pending https://github.com/monarch-initiative/medgen/issues/6 | |
# output/release/medgen-disease-extract.owl | |
# output/release/medgen.sssom.tsv | |
files: | | |
output/release/medgen.obo | |
output/release/medgen-disease-extract.obo | |
output/release/medgen-xrefs.robot.template.tsv |