Skip to content

ci: Remove publishing release assets #1745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 1 addition & 41 deletions .github/workflows/release-automated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 != ''
Expand Down
48 changes: 0 additions & 48 deletions .github/workflows/release-manual-assets.yml

This file was deleted.

19 changes: 2 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand All @@ -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

Expand All @@ -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
Expand Down
45 changes: 0 additions & 45 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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)
Expand Down