Publish Packages for Release #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create and Publish repository Packages | |
name: Publish Packages for Release | |
on: | |
release: | |
types: [ created ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
name: Publish Release | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Check Build | |
run: ./gradlew check --warn | |
timeout-minutes: 7 | |
- name: Generate JavaDoc | |
run: ./gradlew dokkaJavadoc --warn | |
if: success() | |
timeout-minutes: 3 | |
- name: Generate Markdown | |
run: ./gradlew dokkaGfm --warn | |
if: success() | |
timeout-minutes: 3 | |
- name: Publish Packages | |
run: ./gradlew publish --warn | |
if: success() | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload JavaDoc and Markdown | |
uses: actions/upload-artifact@v4 | |
if: success() || failure() | |
with: | |
name: JavaDocs-11 | |
path: | | |
/home/runner/work/coroutines/coroutines/queue/build/dokka/ | |
retention-days: 60 | |
timeout-minutes: 1 |