Skip to content

Commit

Permalink
Init repository
Browse files Browse the repository at this point in the history
  • Loading branch information
g-nardiello committed May 2, 2024
0 parents commit 7c9eaea
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# vocabulary-tektonik
24 changes: 24 additions & 0 deletions workflows/tektonik-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish the new Tektonic 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: ./tektonik.rdf # percorso del file che vuoi caricare
PUT_URL: https://dev-graphdbgps.swissgeol.ch/publish/tektonik_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 workflows/tektonik-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 Tektonik

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 7c9eaea

Please sign in to comment.