Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #830 from square/jw/gh-actions/2021-03-18
Browse files Browse the repository at this point in the history
Use GitHub Actions for CI
  • Loading branch information
JakeWharton authored Mar 19, 2021
2 parents d59c752 + 8d619f1 commit 742af18
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 65 deletions.
26 changes: 0 additions & 26 deletions .buildscript/deploy_snapshot.sh

This file was deleted.

9 changes: 0 additions & 9 deletions .buildscript/settings.xml

This file was deleted.

File renamed without changes.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build

on: [push, pull_request]

jobs:
jvm:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
java-version:
- 1.8
- 9
- 10
# TODO:
#- 11
#- 12
#- 13
#- 14
#- 15
#- 16

steps:
- uses: actions/checkout@v2

- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}

- run: mvn --no-transfer-progress verify source:jar javadoc:jar

- run: mvn --no-transfer-progress deploy --settings=".github/workflows/settings.xml" -Dmaven.test.skip=true
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'square/javapoet' && matrix.java-version == '1.8' }}
9 changes: 9 additions & 0 deletions .github/workflows/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<settings>
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${env.SONATYPE_DEPLOY_USERNAME}</username>
<password>${env.SONATYPE_DEPLOY_PASSWORD}</password>
</server>
</servers>
</settings>
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

0 comments on commit 742af18

Please sign in to comment.