-
Notifications
You must be signed in to change notification settings - Fork 5
Deploy to DeployGate
noboru ISHIKURA(JP) edited this page Mar 13, 2018
·
1 revision
Creating DeployGate account.
Please get "API key" from profile page.
Please refer to https://docs.fastlane.tools/actions/deploygate/ and https://docs.deploygate.com/v1.2/docs/fastlane
Sample:Fastfile
desc "Upload to DeployGate"
lane :deploygate do
build_app( ...
deploygate(
user: 'user name or group name', # or set as DEPLOYGATE_USER to environment variable.
message: "Fastlane build #{lane_context[SharedValues::BUILD_NUMBER]}",
)
end
Add bundle exec fastlane deploygate
into .circleci/config.yml
.
e.g. If you want to publish to deploygate when changed master branch,
deploy:
<<: *defaults
steps:
- attach_workspace:
at: /Users/distiller/project
- run:
name: Upload to DeployGate
command: bundle exec fastlane deploygate
workflows:
version: 2
build_and_deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: master
Please set environment variable to repository setting page. https://circleci.com/gh/[owner]/[repository name]/edit#env-vars
- DEPLOYGATE_API_TOKEN: API key from profile page.