diff --git a/.github/workflows/release-automated.yml b/.github/workflows/release-automated.yml index 9f27178ae..470548d3c 100644 --- a/.github/workflows/release-automated.yml +++ b/.github/workflows/release-automated.yml @@ -3,12 +3,11 @@ on: push: branches: [ master, release, alpha, beta ] env: - CI_XCODE_11: '/Applications/Xcode_11.7.app/Contents/Developer' CI_XCODE_14: '/Applications/Xcode_14.2.app/Contents/Developer' jobs: release: - runs-on: macos-11 + runs-on: macos-12 outputs: current_tag: ${{ steps.tag.outputs.current_tag }} steps: @@ -43,45 +42,6 @@ jobs: id: tag run: echo "::set-output name=current_tag::$(git describe --tags --abbrev=0 --exact-match || echo '')" - assets: - needs: release - if: needs.release.outputs.current_tag != '' - runs-on: macos-11 - env: - GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - ref: ${{ needs.release.outputs.current_tag }} - - name: Cache Gems - id: cache-gems - uses: actions/cache@v2 - with: - path: vendor/bundle - key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gem- - - name: Submodules and Bundle Install - run: | - git submodule update --init --recursive - sudo gem install bundler - bundle config set path 'vendor/bundle' - bundle install - carthage bootstrap --use-xcframeworks - - name: Build Release - run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake package:release - env: - DEVELOPER_DIR: ${{ env.CI_XCODE_11 }} - - name: Deploy assets - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: build/release/* - tag: ${{ needs.release.outputs.current_tag }} - overwrite: true - file_glob: true - publish-docs: needs: release if: needs.release.outputs.current_tag != '' diff --git a/.github/workflows/release-manual-assets.yml b/.github/workflows/release-manual-assets.yml deleted file mode 100644 index 5c9852d68..000000000 --- a/.github/workflows/release-manual-assets.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: release-manual-assets -on: - workflow_dispatch: - inputs: - tag: - default: '' - description: 'Version tag:' -env: - CI_XCODE_11: '/Applications/Xcode_11.7.app/Contents/Developer' - -jobs: - assets: - if: github.event.inputs.tag != '' - runs-on: macos-11 - env: - GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - ref: ${{ github.event.inputs.tag }} - - name: Cache Gems - id: cache-gems - uses: actions/cache@v2 - with: - path: vendor/bundle - key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gem- - - name: Submodules and Bundle Install - run: | - git submodule update --init --recursive - sudo gem install bundler - bundle config set path 'vendor/bundle' - bundle install - carthage bootstrap --use-xcframeworks - - name: Build Release - run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake package:release - env: - DEVELOPER_DIR: ${{ env.CI_XCODE_11 }} - - name: Deploy assets - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: build/release/* - tag: ${{ github.event.inputs.tag }} - overwrite: true - file_glob: true diff --git a/README.md b/README.md index acdef8977..2caa3eeb1 100644 --- a/README.md +++ b/README.md @@ -20,13 +20,12 @@ --- -A library that gives you access to the powerful Parse Server backend from your iOS, iPadOS, macOS, watchOS and tvOS app. For more information about the Parse Platform and its features, see the public [documentation][docs]. Check out some of the [apps using Parse](https://www.appsight.io/sdk/parse). +A library that gives you access to the powerful Parse Server backend from your iOS, iPadOS, macOS, watchOS and tvOS app. For more information about the Parse Platform and its features, see the public [documentation][docs]. --- - [Getting Started](#getting-started) - [Alternative Installation Options](#alternative-installation-options) - - [Download Builds](#download-builds) - [Compile Source](#compile-source) - [Add Sub-Project](#add-sub-project) - [How Do I Contribute?](#how-do-i-contribute) @@ -48,10 +47,6 @@ Take a look at the public [documentation][docs] & [API][api] and start building. ### Alternative Installation Options -#### Download Builds - -Dowload the compiled builds from the asset section in the [releases][releases] page. - #### Compile Source If you want to manually compile the SDK, clone it locally, and run the following commands in the root directory of the repository: @@ -70,15 +65,7 @@ bundle install bundle exec rake package:frameworks ``` -Compiled frameworks will be in multiple archives inside the `build/release` folder: -- `Parse-iOS.zip` -- `Parse-macOS.zip` -- `Parse-tvOS.zip` -- `Parse-watchOS.zip` -- `ParseFacebookUtils-iOS.zip` -- `ParseFacebookUtils-tvOS.zip` -- `ParseTwitterUtils-iOS.zip` -- `ParseUI.zip` +Compiled frameworks will be inside the `build/release` folder. #### Add Sub-Project @@ -97,8 +84,6 @@ We use the following libraries as dependencies inside of Parse: [docs]: http://docs.parseplatform.org/ios/guide/ [api]: http://parseplatform.org/Parse-SDK-iOS-OSX/api/ -[parseui-link]: https://github.com/parse-community/ParseUI-iOS -[releases]: https://github.com/parse-community/Parse-SDK-iOS-OSX/releases [contributing]: https://github.com/parse-community/Parse-SDK-iOS-OSX/blob/master/CONTRIBUTING.md [bolts-framework]: https://github.com/BoltsFramework/Bolts-ObjC [ocmock-framework]: http://ocmock.org diff --git a/Rakefile b/Rakefile index d66374755..0338b2ee8 100644 --- a/Rakefile +++ b/Rakefile @@ -525,7 +525,6 @@ namespace :package do desc 'Build all frameworks and starters' task :release do |_| Rake::Task['package:frameworks'].invoke - Rake::Task['package:starters'].invoke end desc 'Build and package all frameworks for the release' @@ -598,50 +597,6 @@ namespace :package do Rake::Task['build:parse_live_query:macos'].invoke macos_lq_utils_framework_path = File.join(build_folder, 'macOS', 'ParseLiveQuery.framework') make_package(release_folder, [macos_lq_utils_framework_path], 'ParseLiveQuery-OSX.zip') - - end - - desc 'Build and package all starter projects for the release' - task :starters, [:version] => :frameworks do |_, _args| - require 'xcodeproj' - - ios_starters = [ - File.join(script_folder, 'ParseStarterProject', 'iOS', 'ParseStarterProject'), - File.join(script_folder, 'ParseStarterProject', 'iOS', 'ParseStarterProject-Swift') - ] - ios_framework_archive = File.join(release_folder, package_ios_name) - make_starter_package(release_folder, ios_starters, ios_framework_archive, package_starter_ios_name) - - osx_starters = [ - File.join(script_folder, 'ParseStarterProject', 'OSX', 'ParseOSXStarterProject'), - File.join(script_folder, 'ParseStarterProject', 'OSX', 'ParseOSXStarterProject-Swift') - ] - osx_framework_archive = File.join(release_folder, package_macos_name) - make_starter_package(release_folder, osx_starters, osx_framework_archive, package_starter_osx_name) - - tvos_starters = [ - File.join(script_folder, 'ParseStarterProject', 'tvOS', 'ParseStarterProject-Swift') - ] - tvos_framework_archive = File.join(release_folder, package_tvos_name) - make_starter_package(release_folder, tvos_starters, tvos_framework_archive, package_starter_tvos_name) - - watchos_starters = [ - File.join(script_folder, 'ParseStarterProject', 'watchOS', 'ParseStarterProject-Swift') - ] - watchos_framework_archive = File.join(release_folder, package_watchos_name) - watchos_starters.each do |project_path| - `git clean -xfd #{project_path}` - `mkdir -p #{project_path}/Frameworks/iOS && mkdir -p #{project_path}/Frameworks/watchOS` - `cd #{project_path}/Frameworks/iOS && unzip -o #{ios_framework_archive}` - `cd #{project_path}/Frameworks/watchOS && unzip -o #{watchos_framework_archive}` - xcodeproj_path = Dir.glob(File.join(project_path, '*.xcodeproj'))[0] - prepare_xcodeproj(xcodeproj_path) - end - make_package(release_folder, watchos_starters, package_starter_watchos_name) - watchos_starters.each do |project_path| - `git clean -xfd #{project_path}` - `git checkout #{project_path}` - end end def make_package(target_path, items, archive_name)