Skip to content

Commit

Permalink
Temp update to GitHub action since for some reason it won't let me ru…
Browse files Browse the repository at this point in the history
…n on the ODK branch
  • Loading branch information
joeflack4 committed Jun 19, 2023
1 parent 9461feb commit 33caad5
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions .github/workflows/buid_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
name: Build and release

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0" # weekly on Sunday at midnight
# - cron: '0 0 * * *' # every day at midnight
# - cron: "0 0 1 * *" # monthly
workflow_dispatch:

jobs:
build_and_release:
runs-on: ubuntu-latest
container: obolibrary/odkfull:latest
# container: obolibrary/odkfull:v1.4.1
# container: obolibrary/odkfull:dev
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
Expand All @@ -21,7 +24,7 @@ jobs:
python-version: '3.10'
- name: Install
run: |
python -m pip install --upgrade pip
# python -m pip install --upgrade pip
make install
- name: Create .env file
run: |
Expand All @@ -34,20 +37,23 @@ jobs:
# utcOffset: "+08:00"
format: YYYY-MM-DD
- name: build
run: make automated-release-artefacts -B
- name: Release
run: echo Uploading files as new release.
# This one wouldn't work unless it was a tag and on-push.
# uses: softprops/action-gh-release@v1
# run: make automated-release-artefacts -B
run: robot --help


# - name: Release
- uses: "marvinpinto/action-automatic-releases@latest"
with:
# Apparently, GITHUB_TOKEN is auto-created: https://dev.to/github/the-githubtoken-in-github-actions-how-it-works-change-permissions-customizations-3cgp
# ...even though I don't see it here: https://github.com/monarch-initiative/omim/settings/secrets/actions
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ steps.current-time.outputs.formattedTime }}"
# title: "My Title"
prerelease: false
files: |
omim.ttl
# omim.sssom.tsv
# run: echo Uploading files as new release.
## This one wouldn't work unless it was a tag and on-push.
## uses: softprops/action-gh-release@v1
## - name: Release
# - uses: "marvinpinto/action-automatic-releases@latest"
# with:
## Apparently, GITHUB_TOKEN is auto-created: https://dev.to/github/the-githubtoken-in-github-actions-how-it-works-change-permissions-customizations-3cgp
## ...even though I don't see it here: https://github.com/monarch-initiative/omim/settings/secrets/actions
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# automatic_release_tag: "${{ steps.current-time.outputs.formattedTime }}"
## title: "My Title"
# prerelease: false
# files: |
# omim.ttl
## omim.sssom.tsv

0 comments on commit 33caad5

Please sign in to comment.