File tree 2 files changed +29
-8
lines changed
2 files changed +29
-8
lines changed Original file line number Diff line number Diff line change
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 }}
Original file line number Diff line number Diff line change 69
69
70
70
<distributionManagement >
71
71
<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 >
75
75
</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 >
81
76
</distributionManagement >
82
77
83
78
<properties >
You can’t perform that action at this time.
0 commit comments