Add changelog for 1.0.0 #49
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: Dispatch release | |
on: | |
push: | |
tags: | |
- '[1-9]+.[0-9]+.[0-9]+' | |
- '!**-xcodebuild-**' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
concurrency: | |
group: ${{ github.ref_name }} | |
jobs: | |
ensure-tag-is-on-main: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
with: | |
ref: main | |
fetch-depth: 0 | |
- run: exit $(git merge-base --is-ancestor $GITHUB_REF_NAME HEAD) | |
update-xcframeworks-and-create-tags: | |
runs-on: macos-14-xlarge | |
needs: [ ensure-tag-is-on-main ] | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
xcodeversion: [ 14.3.1, 15.0.1, 15.1, 15.2, 15.3 ] | |
steps: | |
- uses: actions/[email protected] | |
- uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: ${{ inputs.xcodeversion }} | |
- uses: ./.github/actions/runGradleTask | |
with: | |
preTaskString: -Pversion=$GITHUB_REF_NAME | |
task: :library:assembleTidalNetworkTimeReleaseXCFramework | |
- run: | | |
git config --local user.name $GITHUB_ACTOR | |
git config --local user.email [email protected] | |
git add -f library/build/XCFrameworks/release/TidalNetworkTime.xcframework | |
git commit -m "XCFramework update for version $GITHUB_REF_NAME-xcodebuild-${{ matrix.xcodeversion }}" | |
git tag $GITHUB_REF_NAME-xcodebuild-${{ matrix.xcodeversion }} -m $GITHUB_REF_NAME-xcodebuild-${{ matrix.xcodeversion }} | |
git push origin tag $GITHUB_REF_NAME-xcodebuild-${{ matrix.xcodeversion }} | |
- run: gh workflow run release.yml --ref $GITHUB_REF_NAME-xcodebuild-${{ matrix.xcodeversion }} | |
create-github-release: | |
runs-on: ubuntu-22.04 | |
needs: [ update-xcframeworks-and-create-tags ] | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/[email protected] | |
with: | |
ref: ${{ github.ref_name }} | |
- run: .scripts/github/release.sh | |
publish-jvm-maven-publication: | |
runs-on: macos-14-xlarge | |
needs: [ update-xcframeworks-and-create-tags ] | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/[email protected] | |
with: | |
ref: ${{ github.ref_name }} | |
- uses: ./.github/actions/runGradleTask | |
with: | |
preTaskString: -Pversion=$GITHUB_REF_NAME | |
task: :library:publishJvmPublicationToGithubPackagesRepository |