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

Commit

Permalink
Fix CI format
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcferreira committed Feb 3, 2022
1 parent b7cbec0 commit 9fee102
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Deploy

on:
push:
tags: '*.*.**'
release:
types: [created]

jobs:
publish:
Expand All @@ -19,14 +19,14 @@ jobs:
java-version: '11'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x ./main/gradlew
run: chmod +x ./gradlew
- name: Extract Tag
id: tag
run: echo ::set-output name=name::${GITHUB_REF#refs/*/}
id: tag
run: echo ::set-output name=name::${GITHUB_REF#refs/*/}
- name: Publish Package
env:
BUILD_NUMBER: ${{ github.run_number }}
BUILD_VERSION: ${{ steps.tag.outputs.name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew clean publish "-Pgpr.user=${GITHUB_ACTOR}" "-Pgpr.key=${GITHUB_TOKEN}" "-Pversion=${BUILD_VERSION}"
env:
BUILD_NUMBER: ${{ github.run_number }}
BUILD_VERSION: ${{ steps.tag.outputs.name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew clean publish "-Pgpr.user=${GITHUB_ACTOR}" "-Pgpr.key=${GITHUB_TOKEN}" "-Pversion=${BUILD_VERSION}"

0 comments on commit 9fee102

Please sign in to comment.