yarn/.github/workflows/publish.yml

36 lines
1.1 KiB
YAML
Raw Normal View History

2020-11-06 18:33:17 -05:00
name: Publish
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
container:
2021-04-10 17:41:59 -04:00
image: openjdk:16-jdk
2020-11-06 18:33:17 -05:00
options: --user root
steps:
- uses: actions/checkout@v2
2020-11-06 18:33:17 -05:00
- uses: gradle/wrapper-validation-action@v1
# Ensure that releases are not ran in parallel, this ensures that the latest commit is the latest release
# See https://github.com/softprops/turnstyle
- name: Turnstyle
uses: softprops/turnstyle@v1
with:
2021-04-11 08:10:20 -04:00
continue-after-seconds: 3600
same-branch-only: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020-11-06 18:33:17 -05:00
# Generate the build number based on tags to allow per branch build numbers, not something github provides by default.
- name: Generate build number
id: buildnumber
uses: einaregilsson/build-number@v3
with:
token: ${{ secrets.github_token }}
prefix: ${{ github.ref }}
- run: ./gradlew build javadocJar publish --stacktrace
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}