From b7c42ecbb7b1d96aba1a4db0b8c4d56415de4ebc Mon Sep 17 00:00:00 2001 From: Max Henkel Date: Fri, 26 Mar 2021 10:41:18 +0100 Subject: [PATCH] Add release action --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ pom.xml | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..22b67e4 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Build +on: + release: + types: + - created + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2.3.4 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1.4.3 + with: + java-version: 1.8 + server-id: henkelmax.public + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + - name: Publish to maxhenkel.de + run: mvn -B deploy + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 44ff786..29ab1cd 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ de.maxhenkel.opus4j opus4j - 1.0.0-SNAPSHOT + 1.0.0 Opus Wrapper for Java https://maxhenkel.de