-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (40 loc) · 1.4 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
44
# 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.4.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/get-current-time@v2.0.2
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_genes.csv