Skip to content

0.11.2

0.11.2 #31

Workflow file for this run

name: Publish Release
on:
release:
types: [prereleased, released]
jobs:
deploy-release:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/prepare
- name: Generate version
run: |
export VERSION=${{ github.event.release.tag_name }}
echo VERSION
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
- name: Publish
run: |
./gradlew publishAllPublicationsToSonatypeRepository closeAndReleaseSonatypeStagingRepository -Pversion=$VERSION --max-workers 1
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
create-swift-package:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/createSwiftPackage
with:
version: ${{ github.event.release.tag_name }}
deploy-swift-package-release:
needs: [ create-swift-package ]
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/actions/deploySwiftPackage
with:
branch: "main"
token: ${{ secrets.PAT }}
tag: ${{ github.event.release.tag_name }}