fabric-loom/.github/workflows/publish.yml

29 lines
818 B
YAML
Raw Permalink Normal View History

2020-11-15 17:32:57 +00:00
name: Publish
on:
push:
branches:
- 'dev/**'
jobs:
build:
runs-on: ubuntu-20.04
container:
2021-12-04 14:27:36 +00:00
image: openjdk:17-jdk
2020-11-15 17:32:57 +00:00
options: --user root
steps:
- uses: actions/checkout@v1
- uses: gradle/wrapper-validation-action@v1
# 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 publish -x test --stacktrace
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}