This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
added class attribute (#37) #23
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
name: Publish | |
on: | |
push: | |
tags: | |
- '**' | |
jobs: | |
publish: | |
name: Release build and publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Release build | |
run: ./gradlew :uitestglaze:assembleRelease | |
- name: Source jar | |
run: ./gradlew androidSourcesJar | |
- name: Publish to MavenCentral | |
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository | |
env: | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | |
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} | |
- name: Extract release notes | |
id: release_notes | |
uses: ffurrer2/extract-release-notes@v1 | |
- name: Create release | |
uses: ncipollo/release-action@v1 | |
with: | |
body: ${{ steps.release_notes.outputs.release_notes }} | |
discussionCategory: Announcements |