-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created pipelines for vocabulary versioning and publishing
- Loading branch information
1 parent
1068259
commit 8876838
Showing
2 changed files
with
50 additions
and
0 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
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 |
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,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 |