Skip to content

Commit 569063b

Browse files
committed
Add workflow to publish to GitHub Packages
- also remove entur's own jfrog repository for now
1 parent 7e1e09f commit 569063b

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

.github/workflows/publish.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish package to GitHub Packages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
publish:
11+
name: Publish package to GitHub Packages
12+
runs-on: ubuntu-20.04
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Extract metadata to env variables
19+
uses: HSLdevcom/jore4-tools/github-actions/extract-metadata@extract-metadata-v1
20+
21+
- name: Publish to Github Packages
22+
# if: ${{ github.ref == 'refs/heads/main' }}
23+
run: |
24+
mvn --batch-mode deploy
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

pom.xml

+3-8
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,10 @@
6969

7070
<distributionManagement>
7171
<repository>
72-
<id>central</id>
73-
<name>entur2-releases</name>
74-
<url>https://entur2.jfrog.io/entur2/libs-release-local</url>
72+
<id>github</id>
73+
<name>GitHub Packages</name>
74+
<url>https://maven.pkg.github.com/hsldevcom/jore4-tiamat-rutebanken-helpers</url>
7575
</repository>
76-
<snapshotRepository>
77-
<id>snapshots</id>
78-
<name>entur2-snapshots</name>
79-
<url>https://entur2.jfrog.io/entur2/libs-snapshot-local</url>
80-
</snapshotRepository>
8176
</distributionManagement>
8277

8378
<properties>

0 commit comments

Comments
 (0)