Pre-release ontology #152
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
name: Pre-release ontology | |
on: | |
push: | |
branches: ['main'] | |
workflow_dispatch: {} | |
schedule: | |
- cron: '25 4 * * 0,2,4,6' | |
jobs: | |
package: | |
name: "Package" | |
runs-on: "ubuntu-latest" | |
container: ghcr.io/rdf-stax/ci-worker:main | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
path: stax | |
- name: Package ontology | |
run: python /app/tasks/package.py stax/src output dev | |
- name: Generate documentation | |
run: | | |
python /app/tasks/doc_gen.py output/stax.ttl output dev | |
python /app/tasks/tests_doc_gen.py stax/tests output/tests.md main | |
mkdir cache | |
- name: Restore nanopub cache | |
uses: actions/cache/restore@v4 | |
with: | |
path: cache | |
key: nanopubs- | |
restore-keys: nanopubs- | |
- name: Fetch nanopublications | |
run: python /app/tasks/nanopub_fetch.py cache output dev | |
- name: Save nanopub cache | |
uses: actions/cache/save@v4 | |
with: | |
path: cache | |
key: nanopubs-${{ hashFiles('cache/*') }} | |
- name: Upload files for the release | |
uses: ncipollo/[email protected] | |
with: | |
allowUpdates: true | |
prerelease: true | |
draft: false | |
omitDraftDuringUpdate: false | |
makeLatest: false | |
tag: "dev" | |
name: "Development pre-release" | |
artifacts: 'output/*' | |
generateReleaseNotes: true | |
call-publish: | |
needs: package | |
uses: ./.github/workflows/publish.yml | |
with: | |
tag: dev | |
permissions: | |
contents: write |