Skip to content

Commit

Permalink
Created pipelines for vocabulary versioning and publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
g-nardiello committed Apr 10, 2024
1 parent 1068259 commit 8876838
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/chronostratigrafie-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish the new Chronostratigrafie RDF to GraphDB/Public

on:
pull_request:
types:
- closed

jobs:
publish_gps:
runs-on: ubuntu-latest

if: "github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'"

steps:
- name: Checkout the repository
uses: actions/checkout@v3

- name: Upload file via PUT to graphdb-gps
env:
FILE_PATH: ./chronostratigrafie.rdf # percorso del file che vuoi caricare
PUT_URL: https://dev-graphdbgps.swissgeol.ch/publish/chronostratigraphy_swisstopo_public_core?context=https://lexic.swissgeol.ch
TOKEN: ${{ secrets.LEXIC_CONTROLLED_VOCABULARIES_GRAPHDB_GPS_TOKEN }}
run: |
curl -X PUT -T $FILE_PATH -H "Authorization: Bearer $TOKEN" $PUT_URL
26 changes: 26 additions & 0 deletions .github/workflows/chronostratigrafie-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Create a GitHub Release for the new version of Chronostratigrafie

on:
pull_request:
types:
- closed

jobs:
create_release:
permissions: write-all
runs-on: ubuntu-latest

if: "github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'"

steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Create the GitHub Release
uses: ncipollo/release-action@v1
with:
name: ${{ github.event.pull_request.title }}
body: ${{ github.event.pull_request.body }}
tag: v${{ github.event.pull_request.number }}
commit: ${{ github.event.pull_request.merge_commit_sha }}
makeLatest: true

0 comments on commit 8876838

Please sign in to comment.