Skip to content

Commit

Permalink
Replace Maven repo
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ghanem committed Feb 10, 2022
1 parent 8bc3cf2 commit 86df41c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ jobs:
distribution: zulu
java-version: 17

- name: Deploy artifact with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package
run: |
mkdir -p ~/.m2
echo "<?xml version='1.0' encoding='UTF-8' ?> <settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd' xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <profiles> <profile> <repositories> <repository> <snapshots> <enabled>false</enabled> </snapshots> <id>bintray-uio-bmi-Crypt4GH</id> <name>bintray</name> <url>https://dl.bintray.com/uio-bmi/Crypt4GH</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <snapshots> <enabled>false</enabled> </snapshots> <id>bintray-uio-bmi-Crypt4GH</id> <name>bintray-plugins</name> <url>https://dl.bintray.com/uio-bmi/Crypt4GH</url> </pluginRepository> </pluginRepositories> <id>bintray</id> </profile> </profiles> <activeProfiles> <activeProfile>bintray</activeProfile> </activeProfiles> <servers> <server> <id>bintray-uio-bmi-Crypt4GH</id> <username>dtitov</username> <password>${{ secrets.MAVEN_TOKEN }}</password> </server> </servers> </settings>" > ~/.m2/settings.xml
mvn javadoc:javadoc
mvn deploy
mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create release
id: create_release
Expand Down

0 comments on commit 86df41c

Please sign in to comment.