mirror of
https://github.com/valitydev/moneypenny-proto.git
synced 2024-11-06 01:55:18 +00:00
fd77027f63
* Move to gh actions * Remove build_utils Co-authored-by: Inal Arsanukaev <inalarsanukaev@192.168.1.3>
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
name: Deploy Artifact
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
- 'main'
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Install thrift
|
|
uses: valitydev/action-setup-thrift@v0.0.1
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Retrieve commit info
|
|
run: |
|
|
echo "::set-output name=COMMIT_NUMBER::$(git rev-list HEAD --count)"
|
|
echo "::set-output name=SHA_7::${GITHUB_SHA::7}"
|
|
id: commit_info
|
|
- name: Deploy package
|
|
uses: valitydev/action-deploy-jdk-package@v1.0.12
|
|
with:
|
|
server-username: ${{ secrets.OSSRH_USERNAME }}
|
|
server-password: ${{ secrets.OSSRH_TOKEN }}
|
|
deploy-secret-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
|
|
deploy-secret-key-password: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
|
|
maven-args: '-Dcommit.number=${{ steps.commit_info.outputs.COMMIT_NUMBER }} -Drevision="1.${{ steps.commit_info.outputs.COMMIT_NUMBER }}-${{ steps.commit_info.outputs.SHA_7 }}"'
|