forked from ltouati/vfs-gcs
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: move from Travis to Github Actions
- Loading branch information
1 parent
97449c6
commit b1f24b0
Showing
3 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: 'CI Build' | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [ opened, reopened, edited ] | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
compile-and-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Java and Maven | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '8' | ||
cache: 'maven' | ||
cache-dependency-path: 'vfs-azure/pom.xml' | ||
|
||
- name: Compile | ||
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V | ||
|
||
- name: Run tests | ||
run: mvn test -B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: 'CI Publish to Maven Central' | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- 'release/*' | ||
|
||
concurrency: | ||
group: '${{ github.workflow }} @ ${{ github.head_ref || github.ref }}' | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
compile-test-and-publish-to-maven-central: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Java and Maven | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '8' | ||
cache: 'maven' | ||
cache-dependency-path: 'vfs-azure/pom.xml' | ||
|
||
- name: Compile | ||
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V | ||
|
||
- name: Run tests | ||
run: mvn test -B | ||
|
||
- name: Copy publishing-config settings.xml into place | ||
run: cp .ci.settings.xml $HOME/.m2/settings.xml | ||
|
||
- name: Publish to Maven Central | ||
run: ./publish.sh | ||
env: | ||
SONATYPE_GPGKEY_FILE_ENCRYPTION_KEY: ${{ secrets.SONATYPE_GPGKEY_FILE_ENCRYPTION_KEY }} | ||
SONATYPE_GPGKEY_FILE_ENCRYPTION_IV: ${{ secrets.SONATYPE_GPGKEY_FILE_ENCRYPTION_IV }} | ||
SONATYPE_GPGKEY_PASSPHRASE: ${{ secrets.SONATYPE_GPGKEY_PASSPHRASE }} | ||
SONATYPE_USERNAME: ${{ vars.SONATYPE_USERNAME }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} |