Build and release #141
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: | |
schedule: | |
- cron: "0 0 * * 0" # weekly on Sunday at midnight | |
workflow_dispatch: | |
jobs: | |
build_and_release: | |
runs-on: ubuntu-latest | |
container: obolibrary/odkfull:v1.5.3 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install | |
run: | | |
make install | |
- name: Create .env file | |
run: | | |
echo "API_KEY=${{ secrets.API_KEY }}" > .env | |
- name: Get current time | |
uses: josStorer/[email protected] | |
id: current-time | |
with: | |
format: YYYY-MM-DD | |
- name: build | |
run: | | |
make all | |
- 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 | |
files: | | |
omim.owl | |
omim.sssom.tsv | |
mondo-omim-genes.robot.tsv |