Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastlane-plugin-download_github_release_asset

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastlane-plugin-download_github_release_asset

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

download_github_release_asset plugin

fastlane Plugin Badge Build Status codebeat badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-download_github_release_asset, add it to your project by running:

fastlane add_plugin download_github_release_asset

About download_github_release_asset

This fastlane plugin downloads the GitHub release's asset using the GitHub API. The possible usage of the plugin can be found in example Fastfile.
Usually the asset on GitHub is a .zip file, so here can be really useful another plugin to unzip archive.

Example

Check out the example Fastfile to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins and bundle exec fastlane example.

lane :example do |options|
  release_version = options[:release_version]

  github_release = get_github_release(
    url: ENV['PRIVATE_CONICHI_IOS_SDK_GITHUB_REPO'],
    version: release_version,
    api_token: ENV['CONICHI_CI_GITHUB_TOKEN']
  )

  assets = github_release["assets"]
  selected_assets = assets.select do |asset|
    asset["name"] == "my_asset.zip"
  end

  my_asset_json = selected_assets[0]
  my_asset_url = my_asset_json["url"]
  download_github_release_asset(
    asset_url: my_asset_url,
    destination_path: "./here/my_asset.zip",
    api_token: "token"
  )
end

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting doc in the main fastlane repo.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate building and releasing your iOS and Android apps. To learn more, check out fastlane.tools.

FAQs

Package last updated on 16 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc