Update author list (#45) #31
This file contains hidden or 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
name: "pre-release" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
pre-release: | |
name: "Pre-release" | |
runs-on: "ubuntu-latest" | |
container: ghcr.io/opencs-ontology/ci-worker:main | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
path: opencs | |
- name: "Package ontology" | |
run: python /app/package.py opencs package dev | |
- name: "Infer additional assertions" | |
run: | | |
bash /app/inference/infer_assertions.sh | |
touch inferred_assertions.ttl | |
bash /app/inference/ofn_to_ttl.sh inferred_assertions.ofn inferred_assertions.ttl | |
rm output_opencs.ttl opencs2.ttl | |
gzip inferred_assertions.ttl | |
mv inferred_assertions.ttl.gz package/inferred.ttl.gz | |
- uses: "softprops/action-gh-release@v1" | |
with: | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
tag_name: "dev" | |
prerelease: true | |
name: "Development build" | |
files: package/* | |
- name: Prepare files to be committed to another repository | |
run: | | |
mkdir output_files | |
gzip -cd package/opencs.ttl.gz > output_files/opencs.ttl | |
gzip -cd package/opencs.rdf.gz > output_files/opencs.rdf | |
gzip -cd package/opencs.nt.gz > output_files/opencs.nt | |
- name: "Generate pages for Github Pages repository" | |
run: python /app/generate_pages.py dev $GITHUB_REPOSITORY output_files | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: "Prepare Github Pages static files" | |
run: | | |
mv output_files/page.md output_files/index.md | |
- name: "Push files for dev version" | |
uses: "cpina/github-action-push-to-another-repository@main" | |
env: | |
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | |
with: | |
source-directory: 'output_files' | |
destination-github-username: 'opencs-ontology' | |
destination-repository-name: 'opencs-ontology.github.io' | |
user-name: ci-worker | |
target-directory: /releases/dev/ | |
target-branch: main |