add workflow

This commit is contained in:
InsanusMokrassar 2021-02-27 20:34:38 +06:00
parent a6994fd08f
commit 2d53f71811

17
.github/workflows/autopublish.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Publish package
run: ./gradlew publishAllPublicationsToGithubPackagesRepository
env:
GITHUBPACKAGES_USER: ${{ secrets.GITHUBPACKAGES_USER }}
GITHUBPACKAGES_PASSWORD: ${{ secrets.GITHUB_TOKEN }}