add deploy to gitea packages
Some checks failed
Gitea Action Maven build / build (push) Failing after 1m31s
Some checks failed
Gitea Action Maven build / build (push) Failing after 1m31s
This commit is contained in:
parent
3e0f5c6439
commit
414a97aa82
@ -27,4 +27,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: searchengine-artifact
|
name: searchengine-artifact
|
||||||
path: |
|
path: |
|
||||||
target/*.jar
|
target/*.jar
|
||||||
|
- name: Create Maven settings.xml
|
||||||
|
run: |
|
||||||
|
cat <<EOF > ~/.m2/settings.xml
|
||||||
|
<settings>
|
||||||
|
<servers>
|
||||||
|
<server>
|
||||||
|
<id>gitea</id>
|
||||||
|
<username>${{ vars.OWNER }}</username>
|
||||||
|
<password>${{ secrets.ACCESS_TOKEN }}</password>
|
||||||
|
</server>
|
||||||
|
</servers>
|
||||||
|
</settings>
|
||||||
|
EOF
|
||||||
|
- name: Replace {owner} in pom.xml
|
||||||
|
run: sed -i "s/{owner}/${{ vars.OWNER }}/g" pom.xml
|
||||||
|
- name: Deploy to Gitea Packages
|
||||||
|
run: mvn deploy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user