forked from public-mirrors/ConfigLib
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
775 B
YAML
29 lines
775 B
YAML
name: publish-on-dispatch
|
|
|
|
on: [ 'workflow_dispatch' ]
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
- name: Setup JDK and Gradle
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
- name: Build with Gradle
|
|
run: ./gradlew build
|
|
- name: Archive test reports
|
|
if: ${{ failure() }}
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: test-reports
|
|
path: |
|
|
build/reports/**/*
|
|
- name: Publish to GitHub Packages
|
|
run: ./gradlew publish
|
|
env:
|
|
GITHUB_ACTOR: ${{ github.actor }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |