Skip to content

v2.0.2: Escape issuer and account name when creating otp uri #9

v2.0.2: Escape issuer and account name when creating otp uri

v2.0.2: Escape issuer and account name when creating otp uri #9

Workflow file for this run

name: Maven Package
on:
release:
types: [ created ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]
name: Java ${{ matrix.java }} build
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn -B package --file pom.xml
- run: mkdir artifacts && cp target/*.jar artifacts
- name: Upload Maven build artifact
uses: actions/upload-artifact@v3
with:
name: build-java-${{ matrix.java }}.jar
path: artifacts
test:
needs: [ build ]
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]
name: Java ${{ matrix.java }} test
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Run tests with Maven
run: mvn -B test --file pom.xml
publish-maven-central:
name: Publish to Maven Central Repository
needs: [ build, test ]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Publish package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
nexus_username: ${{ secrets.NEXUS_USERNAME }}
nexus_password: ${{ secrets.NEXUS_PASSWORD }}
maven_profiles: "deploy-maven-central"
publish-github-registry:
name: Publish to GitHub Registry
needs: [ build, test ]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
server-id: github
java-version: '11'
distribution: 'adopt'
- name: Publish package
run: mvn --batch-mode --activate-profiles "deploy-github-registry" deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}