diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..11d6708 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,53 @@ +# Workflow to draft a release for PRs + +name: release + +# Controls when the action will run. +on: + # Triggers the workflow on pull request events but only for the main branch + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job + prepare_release: + # The type of runner that the job will run on + runs-on: ubuntu-latest + container: obolibrary/odkfull:v1.6.1 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + # Get date for the release + - name: Get current date + id: date + run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + # Run the release file generation + - name: Update release files + run: cd src/ontology/ && make ROBOT_ENV='ROBOT_JAVA_ARGS=-Xmx6G' GITHUB_ACTION=true prepare_release_fast -B + # Create a draft release with the release files + - name: Draft release + uses: softprops/action-gh-release@v3 + with: + generate_release_notes: true + draft: true + tag_name: v${{ steps.date.outputs.date }} + files: | + camo.owl + camo.obo + camo.json + camo-base.owl + camo-base.obo + camo-base.json + camo-full.owl + camo-full.obo + camo-full.json + camo-simple.owl + camo-simple.obo + camo-simple.json + diff --git a/README.md b/README.md index 470ad31..c5f5c51 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Description: Organized terms in support of a shared data model. -More information can be found at http://obofoundry.org/ontology/camo +More information can be found at [the Common Access Model](https://include-dcc.github.io/common-access-model/) ## Versions @@ -12,9 +12,7 @@ More information can be found at http://obofoundry.org/ontology/camo The latest version of the ontology can always be found at: -http://purl.obolibrary.org/obo/camo.owl - -(note this will not show up until the request has been approved by obofoundry.org) +Release URI TBD ### Editors' version @@ -26,4 +24,4 @@ Please use this GitHub repository's [Issue tracker](https://github.com/include-d ## Acknowledgements -This ontology repository was created using the [Ontology Development Kit (ODK)](https://github.com/INCATools/ontology-development-kit). \ No newline at end of file +This ontology repository was created using the [Ontology Development Kit (ODK)](https://github.com/INCATools/ontology-development-kit).