Skip to content

Commit

Permalink
ci: commits version (#7)
Browse files Browse the repository at this point in the history
* ci: commits version

* fix: indentation

* temp: hard-coding-version

* temp: removing comment

* ci: workflow updated to push on release
  • Loading branch information
vilkg authored Mar 23, 2020
1 parent 4c75c14 commit 1a50aab
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,31 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Deploy
env:
GITHUB_USERNAME: x-access-token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn versions:set -DnewVersion=${{ github.event.release['name'] }}
mvn -s ./settings.xml deploy -U
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Update version
run: |
mvn versions:set -DnewVersion=${{ github.event.release['name'] }}
- name: Commit changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add ./pom.xml
git commit -m "release: bump maven version"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
- name: Deploy
env:
GITHUB_USERNAME: x-access-token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn -s ./settings.xml deploy -U

0 comments on commit 1a50aab

Please sign in to comment.