-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from bitrise-io/update
Update
- Loading branch information
Showing
18 changed files
with
146 additions
and
468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,85 @@ | ||
format_version: 1.0.0 | ||
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | ||
|
||
app: | ||
envs: | ||
- RELEASE_VERSION: 3.0.0 | ||
|
||
workflows: | ||
# ---------------------------------------------------------------- | ||
# --- workflow to Step Test | ||
test: | ||
steps: | ||
- script: | ||
title: Step audit | ||
inputs: | ||
- content: stepman audit --step-yml=./step.yml | ||
- change-workdir: | ||
title: Switch working dir to test / _tmp dir | ||
run_if: true | ||
inputs: | ||
- path: ./_tmp | ||
- path::./: | ||
- script: | ||
inputs: | ||
- content: |- | ||
#!/bin/bash | ||
echo "RANDOM_QUOTE: ${RANDOM_QUOTE}" | ||
# ---------------------------------------------------------------- | ||
# --- workflow to create Release version | ||
create-release: | ||
steps: | ||
- script: | ||
title: | ||
inputs: | ||
- content: | | ||
#!/bin/bash | ||
set -e | ||
export CI=true | ||
releaseman create --version $RELEASE_VERSION | ||
# ---------------------------------------------------------------- | ||
# --- workflow to Share this step into a Step Library | ||
share-this-step: | ||
envs: | ||
# if you want to share this step into a StepLib | ||
- MY_STEPLIB_REPO_FORK_GIT_URL: $MY_STEPLIB_REPO_FORK_GIT_URL | ||
- STEP_ID_IN_STEPLIB: random-quote | ||
- STEP_GIT_VERION_TAG_TO_SHARE: $RELEASE_VERSION | ||
- STEP_GIT_CLONE_URL: https://github.com/bitrise-io/steps-random-quote.git | ||
description: |- | ||
If this is the first time you try to share a Step you should | ||
first call: $ bitrise share | ||
This will print you a guide, and information about how Step sharing | ||
works. Please read it at least once! | ||
As noted in the Step sharing guide you'll have to fork the | ||
StepLib you want to share this step into. Once you're done with forking | ||
the repository you should set your own fork's git clone URL | ||
in the `.bitrise.secrets.yml` file, or here in the `envs` section, | ||
as the value of the `MY_STEPLIB_REPO_FORK_GIT_URL` environment. | ||
You're now ready to share this Step, just make sure that | ||
the `STEP_ID_IN_STEPLIB` and `STEP_GIT_VERION_TAG_TO_SHARE` | ||
environments are set to the desired values! | ||
To share this Step into a StepLib you can just run: $ bitrise run share-this-step | ||
Once it finishes the only thing left is to actually create a Pull Request, | ||
the way described in the guide printed at the end of the process. | ||
steps: | ||
- script: | ||
inputs: | ||
- content: |- | ||
#!/bin/bash | ||
set -e | ||
set -x | ||
bitrise share start -c ${MY_STEPLIB_REPO_FORK_GIT_URL} | ||
bitrise share create --stepid ${STEP_ID_IN_STEPLIB} --tag ${STEP_GIT_VERION_TAG_TO_SHARE} --git ${STEP_GIT_CLONE_URL} | ||
bitrise share finish |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.