Skip to content

Commit

Permalink
pom fil og deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
bbktrifork committed Feb 7, 2023
1 parent 8827356 commit 5d42dca
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow will build a Java project with Maven
name: Build and publish schemas with Maven

on:
release:
types: [ created ]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
SSH_KEY: ${{secrets.SUBMODULE_CONTENT_PULL_KEY}}

jobs:
build-and-publish:
name: Build and publish code
runs-on: ubuntu-latest
steps:
- name: Checkout main repository
uses: actions/checkout@v3

- name: Clean with Maven
run: mvn clean
- name: Compile with Maven
run: mvn compile
- name: Run publish with Maven
run: mvn deploy
19 changes: 19 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>groupId</groupId>
<artifactId>ctr-schemas</artifactId>
<version>1.0-SNAPSHOT</version>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/trifork/ctr-schemas</url>
</repository>
</distributionManagement>

</project>

0 comments on commit 5d42dca

Please # to comment.