diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2183582..61fbb2b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: deploy on: push: tags: - - '*' + - '*' jobs: build: runs-on: ubuntu-20.04 @@ -12,29 +12,30 @@ jobs: GPG_KEY: ${{ secrets.GPG_KEY }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} steps: - - name: Check Out Source Code - uses: actions/checkout@v3 + - name: Check Out Source Code + uses: actions/checkout@v3 - - name: Set up Java 8 - uses: actions/setup-java@v2 - with: - distribution: 'temurin' - java-version: '8' - cache: 'maven' + - name: Set up Java 8 + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '8' + cache: 'maven' - - name: Prepare deploy - shell: bash - env: - CODESIGNING: ${{ secrets.CODESIGNING }} - run: | - echo 'Run deploy preparation ' ${GITHUB_REF##*/} - openssl aes-256-cbc -in release/codesigning.asc.enc -out release/codesigning.asc -d -k $CODESIGNING - gpg --batch --fast-import release/codesigning.asc - rm release/codesigning.asc - ./mvnw versions:set -DnewVersion=${GITHUB_REF#refs/tags/} + - name: Prepare deploy + shell: bash + env: + CODESIGNING: ${{ secrets.CODESIGNING }} + run: | + echo 'Run deploy preparation ' ${GITHUB_REF##*/} + openssl aes-256-cbc -in release/codesigning.asc.enc -out release/codesigning.asc -d -k $CODESIGNING + gpg --batch --fast-import release/codesigning.asc + rm release/codesigning.asc + gpg --list-packets + ./mvnw versions:set -DnewVersion=${GITHUB_REF#refs/tags/} - - name: Deploy - run: | - echo 'Deploy' - ./mvnw deploy --settings release/settings.xml - echo 'Deploy finished successfully' \ No newline at end of file + - name: Deploy + run: | + echo 'Deploy' + ./mvnw deploy --settings release/settings.xml + echo 'Deploy finished successfully'