-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and add documentation for how to release a new BattINFO version as well as how to release the documentation.
- Loading branch information
Showing
7 changed files
with
101 additions
and
21 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,8 @@ env: | |
GIT_USER_EMAIL: "[email protected]" | ||
|
||
jobs: | ||
update_version: | ||
update-version: | ||
name: Update version | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -27,4 +28,24 @@ jobs: | |
pip install -U setuptools wheel | ||
- name: Update version | ||
run: | | ||
run: | | ||
# Update BattINFO versions in battinfo.ttl versionIRI and versionInfo as well as the reference in catalog-v001.xml | ||
sed -i "s|BattINFO/[0-9]\.[0-9]\.[0-9]/battinfo|BattINFO/${GITHUB_REF#refs/tags/v}/battinfo|g" battinfo.ttl | ||
sed -i "s|versionInfo \".*\"|versionInfo \"${GITHUB_REF#refs/tags/v}\"|g" battinfo.ttl | ||
sed -i "s|BattINFO/[0-9]\.[0-9]\.[0-9]/battinfo|BattINFO/${GITHUB_REF#refs/tags/v}/battinfo|g" catalog-v001.xml | ||
- name: Commit changes | ||
run: | | ||
# Set up git | ||
git config --local user.name "${GIT_USER_NAME}" | ||
git config --local user.email "${GIT_USER_EMAIL}" | ||
# Commit and push changes | ||
git add battinfo.ttl catalog-v001.xml | ||
git commit -m "Update version to ${GITHUB_REF#refs/tags/v}" | ||
git push origin master | ||
update-docs: | ||
name: Update documentation | ||
needs: update-version | ||
uses: ./.github/workflows/update_ghpages.yml |
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<catalog prefer="public" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> | ||
<group id="Folder Repository, directory=, recursive=true, Auto-Update=false, version=2" prefer="public" xml:base=""> | ||
<uri name="https://big-map.github.io/BattINFO/ontology/BattINFO/0.6.0/battinfo" uri="./battinfo.ttl"/> | ||
<uri name="http://emmo.info/battery/0.6.0/battery-inferred" uri="https://raw.githubusercontent.com/emmo-repo/domain-battery/0.6.0/inferred_version/battery-inferred.ttl"/> | ||
|
||
<uri name="https://big-map.github.io/BattINFO/ontology/BattINFO/0.6.0/battinfo.ttl" uri="./battinfo.ttl"/> | ||
<uri name="http://emmo.info/battery/0.6.0/battery-inferred" uri="https://raw.githubusercontent.com/emmo-repo/domain-battery/0.6.0/inferred_version/battery-inferred.ttl"/> | ||
</group> | ||
</catalog> |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Release a new BattINFO version | ||
|
||
## Introduction | ||
|
||
This document describes the process of releasing a new version of the BattINFO ontology. | ||
|
||
## Prerequisites | ||
|
||
To release a new version of the BattINFO ontology, you need to have: | ||
|
||
- A GitHub account with release creation access to the [BattINFO repository](https://github.com/BIG-MAP/BattINFO). | ||
|
||
## Release process | ||
|
||
The release process is as follows: | ||
|
||
1. [Create a new release on GitHub.](#create-a-new-release-on-github) | ||
2. [Check that the documentation is built and published correctly.](#check-that-the-documentation-is-built-and-published-correctly) | ||
|
||
### Create a new release on GitHub | ||
|
||
To create a new release on GitHub, follow these steps: | ||
|
||
1. Go to [create a new release in the BattINFO repository](https://github.com/BIG-MAP/BattINFO/releases/new). | ||
2. Set the tag version to the version you want to release, e.g., `v0.1.0`. | ||
3. Set the release title similarly, e.g., `v0.1.0`. | ||
4. Write a description of the release. | ||
|
||
### Check that the documentation is built and published correctly | ||
|
||
To check that the documentation is built and published correctly, follow these steps: | ||
|
||
1. Go to [the Actions tab in the BattINFO repository](https://github.com/BIG-MAP/BattINFO/actions). | ||
2. Click on the latest workflow run for the "Publish new release" workflow. | ||
3. Ensure it finishes successfully. | ||
|
||
If the workflow run finishes successfully, the version will be updated in the `owl:versionIRI` and `owl:versionInfo` values of the [`battinfo.ttl`](../../battinfo.ttl) file as well as in the [`catalog-v001.xml`](../../catalog-v001.xml) file. | ||
After these changes being merged back into the `master` branch, the documentation will be built and published to the `gh-pages` branch of the repository with the new version. | ||
This will be done by calling the [`update_ghpages.yml`](../../.github/workflows/update_ghpages.yml) workflow. |