Skip to content

Commit

Permalink
Merge pull request #68 from lat-lon/deployToGitHub
Browse files Browse the repository at this point in the history
Add job to GitHub action to deploy to repo
  • Loading branch information
tfr42 authored Nov 21, 2023
2 parents 628f111 + f3e3123 commit f042e9c
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
Expand All @@ -30,4 +28,19 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: sep3-parser
path: target/sep3-parser-*-jar-with-dependencies.jar
path: target/sep3-parser-*-jar-with-dependencies.jar
deploy:
if: github.ref.name == 'main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build and Publish
run: mvn -B deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions 00_dbinfo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--
-- db info
--
CREATE table public.sep3tools (
part VARCHAR (100),
value VARCHAR (255)
);

COPY public.sep3tools (part, value)
FROM 'db-1.properties'
DELIMITER '='
QUOTE '@'
CSV
;

File renamed without changes.
13 changes: 13 additions & 0 deletions db-2.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
URL=jdbc:postgresql://localhost/petroparser
USER=petroparser
PASSWORD=petroparser
WOERTERBUCH=woerterbuch."Woerterbuch"
WBKUERZEL="Kuerzel"
WBKLARTEXT="Klartext"
WBTYP="Typ"
WBATTRIBUTE="Attribute"
SCHLUESSELTYPEN=woerterbuch."Schluesseltypen"
STNEBENTYPBEZ="Nebentypbez"
STDATENFELD="Datenfeld"
SCHLUESSELMAPPING=bml.bml_schluesselmapping
DATEFIELD=PETRO

0 comments on commit f042e9c

Please sign in to comment.