From 029b95cfc941bd4457f3bf4e25186fc33827aa86 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 14 Feb 2024 08:46:25 -0800 Subject: [PATCH] publish docs only --- .github/workflows/master-push.yml | 110 +----------------------- .github/workflows/publish-release.yml | 116 -------------------------- 2 files changed, 1 insertion(+), 225 deletions(-) diff --git a/.github/workflows/master-push.yml b/.github/workflows/master-push.yml index 885784142f..541f150a54 100644 --- a/.github/workflows/master-push.yml +++ b/.github/workflows/master-push.yml @@ -3,6 +3,7 @@ on: push: branches: - "master" + - "release-docs" env: XCODE_VERSION: "['14.2', '14.3.1', '15.1', '15.2']" PLATFORM: "['ios', 'osx', 'watchos', 'tvos', 'catalyst', 'visionos']" @@ -229,112 +230,3 @@ jobs: with: name: realm-swift-${{ needs.prepare.outputs.VERSION }} path: pkg/realm-swift-${{ needs.prepare.outputs.VERSION }}.zip - test-package-examples: - runs-on: macos-13 - name: Test examples - needs: [package-release, prepare] - steps: - - uses: actions/checkout@v4 - - name: Select Xcode Version - run: sudo xcode-select -switch /Applications/Xcode_${{ env.TEST_VERSION }}.app - - name: Restore release - uses: actions/download-artifact@v4 - with: - name: realm-swift-${{ needs.prepare.outputs.VERSION }} - - name: Test examples - run: sh -x build.sh release-test-examples - test-ios-static: - runs-on: macos-13 - name: Run tests on iOS with configuration Static - needs: package-release - steps: - - uses: actions/checkout@v4 - - name: Select Xcode Version - run: sudo xcode-select -switch /Applications/Xcode_${{ env.TEST_VERSION }}.app - - name: Test ios static - run: sh -x build.sh test-ios-static - test-osx-static: - runs-on: macos-13 - name: Run tests on macOS - needs: package-release - steps: - - uses: actions/checkout@v4 - - name: Select Xcode Version - run: sudo xcode-select -switch /Applications/Xcode_${{ env.TEST_VERSION }}.app - - name: Test osx static - run: | - export REALM_DISABLE_METADATA_ENCRYPTION=1 - sh -x build.sh test-osx - test-installation: - runs-on: macos-13 - name: Run installation test - needs: [package-release, prepare] - strategy: - matrix: - platform: ${{ fromJSON(needs.prepare.outputs.PLATFORM_MATRIX) }} - installation: [cocoapods, spm, carthage, xcframework] - linkage: [dynamic, static] - exclude: - - platform: visionos - - platform: catalyst - installation: carthage - - installation: carthage - linkage: static - - installation: xcframework - linkage: static - include: - - platform: ios - installation: xcframework - linkage: static - steps: - - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - - name: Select Xcode Version - run: sudo xcode-select -switch /Applications/Xcode_${{ env.TEST_VERSION }}.app - - name: Restore release - uses: actions/download-artifact@v4 - if: ${{ matrix.installation == 'xcframework' }} - with: - name: realm-${{ matrix.platform }}-${{ env.TEST_VERSION }} - - name: Unzip package release - if: ${{ matrix.installation == 'xcframework' }} - run: | - mkdir -p build - unzip realm-${{ matrix.platform }}-${{ env.TEST_VERSION }}.zip -d build - - name: Run installation test - run: | - echo "REALM_TEST_BRANCH=${{ github.ref_name }}" >> $GITHUB_OUTPUT - cd examples/installation - bundle exec ./build.rb ${{ matrix.platform }} ${{ matrix.installation }} ${{ matrix.linkage }} - test-installation-xcframework: - runs-on: macos-13 - name: Run installation test for xcframework - needs: [package-release, prepare] - env: - PLATFORM: 'osx' - strategy: - matrix: - xcode-version: ${{ fromJSON(needs.prepare.outputs.XCODE_VERSIONS_MATRIX) }} - steps: - - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - - name: Select Xcode Version - run: sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode-version }}.app - - name: Restore release - uses: actions/download-artifact@v4 - with: - name: realm-${{ env.PLATFORM }}-${{ matrix.xcode-version }} - - name: Unzip package release - run: | - mkdir -p build - unzip realm-${{ env.PLATFORM }}-${{ matrix.xcode-version }}.zip -d build - - name: Run installation test - run: | - echo "REALM_TEST_BRANCH=${{ github.ref_name }}" >> $GITHUB_OUTPUT - cd examples/installation - bundle exec ./build.rb osx xcframework dynamic - diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index a6d45a084d..3889829a90 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -26,12 +26,6 @@ jobs: needs: prepare steps: - uses: actions/checkout@v4 - - uses: rickstaa/action-create-tag@v1 - id: "tag_create" - with: - tag: "v${{ needs.prepare.outputs.VERSION }}" - tag_exists_error: false - message: "" publish-docs: runs-on: macos-latest name: Publish docs to S3 Bucket @@ -48,113 +42,3 @@ jobs: - run: brew install s3cmd - name: Publish docs run: bundle exec sh -x build.sh publish-docs ${{ github.sha }} - create-release: - runs-on: macos-latest - name: Create github release - needs: [tag-release, prepare] - env: - GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - - name: Create Github release - run: bundle exec ./build.sh publish-github ${{ github.sha }} - publish-cocoapods: - runs-on: macos-latest - name: Publish Cocoapods specs - needs: [tag-release, prepare] - env: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} - steps: - - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - - name: Publish - run: bundle exec ./build.sh publish-cocoapods v${{ needs.prepare.outputs.VERSION }} - update-checker: - runs-on: macos-latest - name: Update to latest version update checker file - needs: tag-release - env: - AWS_ACCESS_KEY_ID: ${{ secrets.UPDATE_CHECKER_ACCESS_KEY }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.UPDATE_CHECKER_SECRET_KEY }} - steps: - - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - - run: brew install s3cmd - - run: bundle exec ./build.sh publish-update-checker - test-installation: - runs-on: macos-13 - name: Run installation test for ${{ matrix.platform }}, ${{ matrix.installation }} and ${{ matrix.linkage }} - needs: [create-release, prepare, publish-cocoapods] - strategy: - matrix: - platform: [ios, osx, watchos, tvos, catalyst, visionos] - installation: [cocoapods, spm, carthage, xcframework] - linkage: [static, dynamic] - exclude: - - installation: carthage - linkage: static - - platform: catalyst - installation: carthage - - platform: osx - installation: xcframework - linkage: static - - platform: watchos - installation: xcframework - linkage: static - - platform: tvos - installation: xcframework - linkage: static - - platform: catalyst - installation: xcframework - linkage: static - - platform: visionos - installation: xcframework - linkage: static - - platform: catalyst - installation: carthage - linkage: static - - platform: visionos - installation: carthage - - platform: visionos - installation: cocoapods - steps: - - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - - uses: maxim-lobanov/setup-xcode@v1 - with: - xcode-version: ${{ env.TEST_XCODE_VERSION }} - - name: Set REALM_TEST_RELEASE - run: echo "REALM_TEST_RELEASE=${{ needs.prepare.outputs.VERSION }}" >> $GITHUB_ENV - - name: Run installation test - run: | - cd examples/installation - bundle exec ./build.rb ${{ matrix.platform }} ${{ matrix.installation }} ${{ matrix.linkage }} - post-slack-release: - runs-on: macos-latest - name: Publish to release Slack channel - needs: [test-installation, prepare] - env: - WEBHOOK_URL: ${{ secrets.SLACK_RELEASES_WEBHOOK }} - steps: - - uses: actions/checkout@v4 - - uses: ruby/setup-ruby@v1 - with: - bundler-cache: true - - name: Prepare Changelog - run: bundle exec ./build.sh prepare-publish-changelog - - name: 'Post to #realm-releases' - uses: realm/ci-actions/release-to-slack@v3 - with: - changelog: ExtractedChangelog/CHANGELOG.md - sdk: Swift - webhook-url: ${{ env.WEBHOOK_URL }} - version: ${{ needs.prepare.outputs.VERSION }}