Skip to content

Commit 3b48cf5

Browse files
committed
Add automatic snapshot deploy
1 parent 4240f85 commit 3b48cf5

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,28 @@ jobs:
2828
cache: 'maven'
2929
- name: Run tests
3030
run: mvn test --file pom.xml
31+
32+
33+
snapshot:
34+
35+
needs: test
36+
37+
runs-on: ubuntu-latest
38+
39+
steps:
40+
- name: checkout
41+
uses: actions/checkout@v3
42+
- name: set up Java
43+
uses: actions/setup-java@v2
44+
with:
45+
distribution: 'zulu'
46+
java-version: ${{ inputs.javaLevel }}
47+
server-id: central
48+
server-username: MAVEN_USERNAME
49+
server-password: MAVEN_PASSWORD
50+
- name: Publish package
51+
run: mvn -B deploy
52+
env:
53+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
54+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
55+
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'jruby/jcodings' }}

0 commit comments

Comments
 (0)