Compare commits

..
20 Commits
Author SHA1 Message Date
Cedric van Putten aff8989f53 release: new release for node memory limit fix 2019-04-17 00:24:06 +02:00
Cedric van Putten 698a1c68a5 chore: make travis build the action to double check the docker file 2019-04-17 00:01:01 +02:00
Cedric van Putten 4c25ef9693 fix: increase node memory limit to 4gb 2019-04-17 00:01:01 +02:00
Cedric van Putten aa752f2bde docs: add note about overwriting node options 2019-04-17 00:01:01 +02:00
Cedric van Putten fa422416ae docs: add extra link to base image in description 2019-04-14 18:28:04 +02:00
Cedric van Putten 92beb0f493 docs: rename build action to remove ambiguity with other examples 2019-04-14 18:24:01 +02:00
Cedric van Putten fe96c9dc68 release: create new release under expo and without subactions 2019-04-14 13:48:50 +02:00
Cedric van Putten a801b833a5 docs: add scheduled builds info and update examples 2019-04-14 13:42:19 +02:00
Cedric van Putten 2c88f88370 docs: add travis link to base image builds 2019-04-14 13:36:21 +02:00
Cedric van Putten 0ce8eff16c feat: build docker base image from travis ci
This will ensure staying up to date and should add some transparency how these images are made.
2019-04-14 13:36:21 +02:00
Cedric van Putten 4e2fd4d394 refactor: update base image labels 2019-04-14 13:12:08 +02:00
Cedric van Putten 3f55e8c261 docs: add 650 industries aka expo as license holder 2019-04-14 13:12:08 +02:00
Cedric van Putten b8ec50268d refactor: remove unofficial from the name 2019-04-14 13:06:53 +02:00
Cedric van Putten 0cfae07bbd refactor: remove deprecated subactions 2019-04-14 13:02:15 +02:00
Cedric van Putten fe86cd6f46 docs: add 650 industries aka expo as license holder 2019-04-14 13:01:47 +02:00
Cedric van Putten 617ebf80c7 docs: update references to action repository 2019-04-14 13:01:27 +02:00
Cedric van Putten e6a3b5c87a docs: use latest npm action because of an install failure
I'm not 100% sure why it happens, but there might be something wrong with the `1.0.0` version on this action. I think they are on 2 now, but it isn't "released" yet.
2019-04-10 23:39:48 +02:00
Cedric van Putten 96ead1e418 release: create renamed environment variables release 2019-04-10 23:15:17 +02:00
Cedric van Putten cd75584edf refactor: use better expo cli variables prefix
The password is already being picked up in the Expo CLI itself, so it's better to keep the same structure.

https://github.com/expo/expo-cli/blob/master/packages/expo-cli/src/accounts.js#L93
2019-04-10 23:11:46 +02:00
Cedric van Putten 3c768431d6 docs: pin actions to versions for future releases 2019-04-10 14:14:42 +02:00
25 changed files with 151 additions and 401 deletions

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
---
language: bash
services:
- docker
env:
global:
- DOCKER_IMAGE=bycedric/expo-cli
- DOCKER_TAG=2
script:
- docker build base -t $DOCKER_IMAGE:$DOCKER_TAG
- docker run -ti --rm $DOCKER_IMAGE:$DOCKER_TAG diagnostics
- docker build . -t expo/expo-github-action
- docker run -ti --rm expo/expo-github-action diagnostics
before_deploy:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker tag $DOCKER_IMAGE:$DOCKER_TAG $DOCKER_IMAGE:latest
deploy:
provider: script
script: docker push $DOCKER_IMAGE:$DOCKER_TAG && docker push $DOCKER_IMAGE:latest
on:
branch: master
+80 -30
View File
@@ -1,52 +1,102 @@
## [2.1.0](https://github.com/bycedric/ci-expo/compare/2.0.0...2.1.0) (2019-04-10)
## [2.3.1](https://github.com/expo/expo-github-action/compare/2.3.0...2.3.1) (2019-04-17)
### Code refactors
### Bug fixes
* authenticate in main action if possible ([a401e30](https://github.com/bycedric/ci-expo/commit/a401e30))
* remove extraneous commands from base image ([a90ce59](https://github.com/bycedric/ci-expo/commit/a90ce59))
* increase node memory limit to 4gb ([4c25ef9](https://github.com/expo/expo-github-action/commit/4c25ef9))
### Documentation changes
* add deprecation notice on all sub-actions ([b5a0311](https://github.com/bycedric/ci-expo/commit/b5a0311))
* add examples and more contextual info ([9625bb1](https://github.com/bycedric/ci-expo/commit/9625bb1))
* fix typo in documentation and use link references ([48bbaf3](https://github.com/bycedric/ci-expo/commit/48bbaf3))
* update license to 2019 ([7596f6b](https://github.com/bycedric/ci-expo/commit/7596f6b))
* add note about overwriting node options ([aa752f2](https://github.com/expo/expo-github-action/commit/aa752f2))
* add extra link to base image in description ([fa42241](https://github.com/expo/expo-github-action/commit/fa42241))
* rename build action to remove ambiguity with other examples ([92beb0f](https://github.com/expo/expo-github-action/commit/92beb0f))
### Other chores
* add some issue templates to github ([9aec1f5](https://github.com/bycedric/ci-expo/commit/9aec1f5))
* make travis build the action to double check the docker file ([698a1c6](https://github.com/expo/expo-github-action/commit/698a1c6))
## [2.0.0](https://github.com/bycedric/ci-expo/compare/906c910...2.0.0) (2019-04-02)
## [2.3.0](https://github.com/expo/expo-github-action/compare/2.2.0...2.3.0) (2019-04-14)
### New features
* add basic ios build action ([3a81415](https://github.com/bycedric/ci-expo/commit/3a81415))
* add basic web build action ([3d4bdb6](https://github.com/bycedric/ci-expo/commit/3d4bdb6))
* add basic android build action ([9105177](https://github.com/bycedric/ci-expo/commit/9105177))
* add new publish action ([56563f2](https://github.com/bycedric/ci-expo/commit/56563f2))
* add login entrypoint ([252f16d](https://github.com/bycedric/ci-expo/commit/252f16d))
* add github actions implemented image for expo cli ([864b9bb](https://github.com/bycedric/ci-expo/commit/864b9bb))
* add base image with documentation and licenses ([c43e5c3](https://github.com/bycedric/ci-expo/commit/c43e5c3))
* build docker base image from travis ci ([0ce8eff](https://github.com/expo/expo-github-action/commit/0ce8eff))
### Code refactors
* tag all buid actions as unofficial for release ([ed597e5](https://github.com/bycedric/ci-expo/commit/ed597e5))
* simplify publish action and remove extraneous entrypoint ([61d0c21](https://github.com/bycedric/ci-expo/commit/61d0c21))
* tag all actions as unofficial for release to marketplace ([f56443a](https://github.com/bycedric/ci-expo/commit/f56443a))
* expand existing login with documentation and proper icon ([d2e2a6d](https://github.com/bycedric/ci-expo/commit/d2e2a6d))
* move cli to root as default ([4545e44](https://github.com/bycedric/ci-expo/commit/4545e44))
* expand existing login with documentation and proper icon ([923ed34](https://github.com/bycedric/ci-expo/commit/923ed34))
* remove third party notice until its updated ([f4fc39a](https://github.com/bycedric/ci-expo/commit/f4fc39a))
* use full node version instead of alpine ([a019c94](https://github.com/bycedric/ci-expo/commit/a019c94))
* update base image labels ([4e2fd4d](https://github.com/expo/expo-github-action/commit/4e2fd4d))
* remove unofficial from the name ([b8ec502](https://github.com/expo/expo-github-action/commit/b8ec502))
* remove deprecated subactions ([0cfae07](https://github.com/expo/expo-github-action/commit/0cfae07))
### Documentation changes
* add link to login from publish action ([5b7564c](https://github.com/bycedric/ci-expo/commit/5b7564c))
* add custom cli command action ([4cf38f9](https://github.com/bycedric/ci-expo/commit/4cf38f9))
* add do not use in production warning ([8291794](https://github.com/bycedric/ci-expo/commit/8291794))
* add basic repository description ([906c910](https://github.com/bycedric/ci-expo/commit/906c910))
* add scheduled builds info and update examples ([a801b83](https://github.com/expo/expo-github-action/commit/a801b83))
* add travis link to base image builds ([2c88f88](https://github.com/expo/expo-github-action/commit/2c88f88))
* add 650 industries aka expo as license holder ([3f55e8c](https://github.com/expo/expo-github-action/commit/3f55e8c))
* add 650 industries aka expo as license holder ([fe86cd6](https://github.com/expo/expo-github-action/commit/fe86cd6))
* update references to action repository ([617ebf8](https://github.com/expo/expo-github-action/commit/617ebf8))
* use latest npm action because of an install failure ([e6a3b5c](https://github.com/expo/expo-github-action/commit/e6a3b5c))
## [2.2.0](https://github.com/expo/expo-github-action/compare/2.1.0...2.2.0) (2019-04-10)
### Code refactors
* use better expo cli variables prefix ([cd75584](https://github.com/expo/expo-github-action/commit/cd75584))
### Documentation changes
* pin actions to versions for future releases ([3c76843](https://github.com/expo/expo-github-action/commit/3c76843))
## [2.1.0](https://github.com/expo/expo-github-action/compare/2.0.0...2.1.0) (2019-04-10)
### Code refactors
* authenticate in main action if possible ([a401e30](https://github.com/expo/expo-github-action/commit/a401e30))
* remove extraneous commands from base image ([a90ce59](https://github.com/expo/expo-github-action/commit/a90ce59))
### Documentation changes
* add deprecation notice on all sub-actions ([b5a0311](https://github.com/expo/expo-github-action/commit/b5a0311))
* add examples and more contextual info ([9625bb1](https://github.com/expo/expo-github-action/commit/9625bb1))
* fix typo in documentation and use link references ([48bbaf3](https://github.com/expo/expo-github-action/commit/48bbaf3))
* update license to 2019 ([7596f6b](https://github.com/expo/expo-github-action/commit/7596f6b))
### Other chores
* remove the cli from name ([ab9265b](https://github.com/bycedric/ci-expo/commit/ab9265b))
* add some issue templates to github ([9aec1f5](https://github.com/expo/expo-github-action/commit/9aec1f5))
## [2.0.0](https://github.com/expo/expo-github-action/compare/906c910...2.0.0) (2019-04-02)
### New features
* add basic ios build action ([3a81415](https://github.com/expo/expo-github-action/commit/3a81415))
* add basic web build action ([3d4bdb6](https://github.com/expo/expo-github-action/commit/3d4bdb6))
* add basic android build action ([9105177](https://github.com/expo/expo-github-action/commit/9105177))
* add new publish action ([56563f2](https://github.com/expo/expo-github-action/commit/56563f2))
* add login entrypoint ([252f16d](https://github.com/expo/expo-github-action/commit/252f16d))
* add github actions implemented image for expo cli ([864b9bb](https://github.com/expo/expo-github-action/commit/864b9bb))
* add base image with documentation and licenses ([c43e5c3](https://github.com/expo/expo-github-action/commit/c43e5c3))
### Code refactors
* tag all buid actions as unofficial for release ([ed597e5](https://github.com/expo/expo-github-action/commit/ed597e5))
* simplify publish action and remove extraneous entrypoint ([61d0c21](https://github.com/expo/expo-github-action/commit/61d0c21))
* tag all actions as unofficial for release to marketplace ([f56443a](https://github.com/expo/expo-github-action/commit/f56443a))
* expand existing login with documentation and proper icon ([d2e2a6d](https://github.com/expo/expo-github-action/commit/d2e2a6d))
* move cli to root as default ([4545e44](https://github.com/expo/expo-github-action/commit/4545e44))
* expand existing login with documentation and proper icon ([923ed34](https://github.com/expo/expo-github-action/commit/923ed34))
* remove third party notice until its updated ([f4fc39a](https://github.com/expo/expo-github-action/commit/f4fc39a))
* use full node version instead of alpine ([a019c94](https://github.com/expo/expo-github-action/commit/a019c94))
### Documentation changes
* add link to login from publish action ([5b7564c](https://github.com/expo/expo-github-action/commit/5b7564c))
* add custom cli command action ([4cf38f9](https://github.com/expo/expo-github-action/commit/4cf38f9))
* add do not use in production warning ([8291794](https://github.com/expo/expo-github-action/commit/8291794))
* add basic repository description ([906c910](https://github.com/expo/expo-github-action/commit/906c910))
### Other chores
* remove the cli from name ([ab9265b](https://github.com/expo/expo-github-action/commit/ab9265b))
+6 -2
View File
@@ -1,10 +1,14 @@
FROM bycedric/ci-expo:2
FROM bycedric/expo-cli:2
LABEL com.github.actions.name="Expo CLI (unofficial)"
LABEL com.github.actions.name="Expo CLI"
LABEL com.github.actions.description="Use any Expo CLI command in your GitHub Actions workflow."
LABEL com.github.actions.icon="terminal"
LABEL com.github.actions.color="gray-dark"
COPY entrypoint.sh LICENSE.md README.md /
# increase node's default memory limit to 4gb
# see: https://github.com/expo/expo-github-action/#overwriting-node_options
ENV NODE_OPTIONS="--max_old_space_size=4096"
entrypoint ["/entrypoint.sh"]
+1
View File
@@ -1,6 +1,7 @@
# The MIT License (MIT)
Copyright (c) 2019 Cedric van Putten <me@bycedric.com>
Copyright (c) 2019-present 650 Industries, Inc. (aka Expo)
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
+30 -21
View File
@@ -9,8 +9,8 @@ You can also use [the base image](base) in other Docker-based environments.
## What's inside?
Within this Expo CLI action, you have full access to the original [Expo CLI][link-expo-cli].
That means you are able to perform any command like login, publish and build.
Also, this action will authenticate automatically when both `EXPO_USERNAME` and `EXPO_PASSWORD` variables are defined.
That means you can perform any command like login, publish and build.
Also, this action will authenticate automatically when both `EXPO_CLI_USERNAME` and `EXPO_CLI_PASSWORD` variables are defined.
> You don't necessarily need this action to use Expo.
> You can also add `expo-cli` as a dependency to your project and use the official [NPM action][link-actions-npm] for example.
@@ -18,24 +18,33 @@ Also, this action will authenticate automatically when both `EXPO_USERNAME` and
### Why use a base-image?
Every GitHub action will start from scratch, using the dockerfile as the starting point.
Every GitHub action will start from scratch using the dockerfile as the starting point.
If you define `expo-cli` in this dockerfile, it will install it every time you run an action.
By using a prebuilt image, it basically "skips" the process of downloading the full CLI over and over again.
By using [a prebuilt image](base), it basically "skips" the process of downloading the full CLI over and over again.
This makes the Expo actions overall faster.
### Used secrets
To authenticate with your Expo account, use the variables listed below.
In the Expo action you can define `secrets = ["EXPO_USERNAME", "EXPO_PASSWORD"]` to have them available.
In the Expo action you can define `secrets = ["EXPO_CLI_USERNAME", "EXPO_CLI_PASSWORD"]` to have them available.
variable | description
--- | ---
`EXPO_USERNAME` | The email address or username of your Expo account.
`EXPO_PASSWORD` | The password of your Expo account.
variable | description
--- | ---
`EXPO_CLI_USERNAME` | The email address or username of your Expo account.
`EXPO_CLI_PASSWORD` | The password of your Expo account, [automatically picked up by the cli][link-expo-cli-password].
> Some Expo commands don't require authentication.
> Simply omit the `secrets = [...]` if you don't need it.
### Some caveats
#### Overwriting `NODE_OPTIONS`
By default, Node has a "limited" memory limit.
To fully use the available memory in GitHub Actions, the `NODE_OPTIONS` variable is set to `--max_old_space_size=4096`.
If you need to overwrite this variable, make sure you add this value too or risk Node running out of memory.
See [issue #12][link-issue-memory] for more info.
## Example workflows
Before you dive into the workflow examples, you should know the basics of GitHub Actions.
@@ -64,9 +73,9 @@ action "Install" {
action "Publish" {
needs = "Install"
uses = "bycedric/ci-expo@master"
uses = "expo/[email protected]"
args = "publish"
secrets = ["EXPO_USERNAME", "EXPO_PASSWORD"]
secrets = ["EXPO_CLI_USERNAME", "EXPO_CLI_PASSWORD"]
}
```
@@ -101,26 +110,24 @@ action "Filter branch" {
action "Publish" {
needs = "Filter branch"
uses = "bycedric/ci-expo@master"
uses = "expo/[email protected]"
args = "publish"
secrets = ["EXPO_USERNAME", "EXPO_PASSWORD"]
secrets = ["EXPO_CLI_USERNAME", "EXPO_CLI_PASSWORD"]
}
```
### Test and build web every day at 08:00
You can add as many extra steps in a workflow as you want.
Here we've added a test step, that basically invokes `npm test` using the [NPM action][link-actions-npm].
It also doesn't listen to push events.
Instead, it's scheduled to run every day at 08:00.
The most significant change here is that we've changed the workflow trigger.
Instead of listening to push events, it's scheduled to run every day at 08:00.
> For web builds, you don't need to be authenticated.
> That's why `secrets = [...]` is omitted here.
```hcl
workflow "Install, Test and Build Web" {
workflow "Install, Test and Build for Web" {
on = "schedule(0 8 * * *)"
resolves = ["Publish"]
resolves = ["Build"]
}
action "Install" {
@@ -134,9 +141,9 @@ action "Test" {
args = "test"
}
action "Publish" {
action "Build" {
needs = "Test"
uses = "bycedric/ci-expo@master"
uses = "expo/[email protected]"
args = "build:web"
}
```
@@ -155,3 +162,5 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
[link-actions-npm]: https://github.com/actions/npm
[link-expo]: https://expo.io
[link-expo-cli]: https://docs.expo.io/versions/latest/workflow/expo-cli
[link-expo-cli-password]: https://github.com/expo/expo-cli/blob/8ea616d8848a123270b97e226e33dcb3dde49653/packages/expo-cli/src/accounts.js#L94
[link-issue-memory]: https://github.com/expo/expo-github-action/issues/12
+3 -3
View File
@@ -1,9 +1,9 @@
FROM node:10
LABEL name="Expo for Docker"
LABEL repository="https://github.com/bycedric/ci-expo"
LABEL homepage="https://github.com/bycedric/ci-expo/tree/master/base"
LABEL maintainer="Cedric van Putten <me+ci-[email protected]>"
LABEL repository="https://github.com/expo/expo-github-action"
LABEL homepage="https://github.com/expo/expo-github-action/blob/master/base"
LABEL maintainer="Cedric van Putten <me+expo-action@bycedric.com>"
RUN npm install --global expo-cli@2 \
&& npm cache rm --force \
+1
View File
@@ -1,6 +1,7 @@
# The MIT License (MIT)
Copyright (c) 2019 Cedric van Putten <me@bycedric.com>
Copyright (c) 2019-present 650 Industries, Inc. (aka Expo)
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
+7 -4
View File
@@ -1,7 +1,10 @@
# Expo for Docker
[![Build Status](https://travis-ci.com/expo/expo-github-action.svg?branch=master)](https://travis-ci.com/expo/expo-github-action)
A prebuilt docker image to use the [Expo CLI][link-expo-cli] on Docker-based environments.
This image contains all necessary libraries to perform all commands of the CLI.
To make sure this image stays up to date, Travis CI is scheduled to run weekly builds.
- Based on `node:10` image
- Contains globally installed `expo-cli@2`
@@ -15,10 +18,10 @@ When nothing is provided, it will output the help information provided by the CL
> The entry point uses `sh -c` to invoke Expo, making environment variables available to that command.
```bash
$ docker run --rm bycedric/ci-expo
$ docker run --rm bycedric/ci-expo pubish
$ docker run --rm -ti bycedric/ci-expo login
$ docker run --rm -ti --entrypoint sh bycedric/ci-expo
$ docker run --rm bycedric/expo-cli
$ docker run --rm bycedric/expo-cli pubish
$ docker run --rm -ti bycedric/expo-cli login
$ docker run --rm -ti --entrypoint sh bycedric/expo-cli
```
> This image is intended to use on Docker-based CI environments, see [the Expo CI guide][link-expo-cicd] to get started.
-8
View File
@@ -1,8 +0,0 @@
FROM bycedric/ci-expo:2
LABEL com.github.actions.name="Build Expo Android app (unofficial)"
LABEL com.github.actions.description="Create a standalone Android app in your GitHub Actions workflow."
LABEL com.github.actions.icon="package"
LABEL com.github.actions.color="gray-dark"
ENTRYPOINT ["/entrypoint.sh", "build:android"]
-21
View File
@@ -1,21 +0,0 @@
# The MIT License (MIT)
Copyright (c) 2019 Cedric van Putten <me@bycedric.com>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
-31
View File
@@ -1,31 +0,0 @@
# Expo Build Android for GitHub Actions
> **This sub-action is no longer required and will be removed in the next release.**
> _See the [example workflows](../README.md#example-workflows) for more info._
Create a new standalone Android build from your GitHub workflow.
Optionally, you can configure the properties of this standalone app.
> Make sure to [login](../login) before this step, else your workflow won't have the permission to build a new version
## Usage
Below you can see an example of a build Android action.
> Just like the [publish](../publish) action, you can customize the Android app.
```hcl
action "Build Android app" {
uses = "bycedric/ci-expo/build-android@master"
}
```
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
--- ---
<p align="center">
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
</p>
-8
View File
@@ -1,8 +0,0 @@
FROM bycedric/ci-expo:2
LABEL com.github.actions.name="Build Expo iOS app (unofficial)"
LABEL com.github.actions.description="Create a standalone iOS app in your GitHub Actions workflow."
LABEL com.github.actions.icon="package"
LABEL com.github.actions.color="gray-dark"
ENTRYPOINT ["/entrypoint.sh", "build:ios"]
-21
View File
@@ -1,21 +0,0 @@
# The MIT License (MIT)
Copyright (c) 2019 Cedric van Putten <me@bycedric.com>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
-31
View File
@@ -1,31 +0,0 @@
# Expo Build iOS for GitHub Actions
> **This sub-action is no longer required and will be removed in the next release.**
> _See the [example workflows](../README.md#example-workflows) for more info._
Create a new standalone iOS build from your GitHub workflow.
Optionally, you can configure the properties of this standalone app.
> Make sure to [login](../login) before this step, else your workflow won't have the permission to build a new version
## Usage
Below you can see an example of a build iOS action.
> Just like the [publish](../publish) action, you can customize the iOS app.
```hcl
action "Build iOS app" {
uses = "bycedric/ci-expo/build-ios@master"
}
```
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
--- ---
<p align="center">
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
</p>
-8
View File
@@ -1,8 +0,0 @@
FROM bycedric/ci-expo:2
LABEL com.github.actions.name="Build Expo web bundle (unofficial)"
LABEL com.github.actions.description="Create a bundle for web deployments from your GitHub Actions workflow."
LABEL com.github.actions.icon="package"
LABEL com.github.actions.color="gray-dark"
ENTRYPOINT ["/entrypoint.sh", "build:web"]
-21
View File
@@ -1,21 +0,0 @@
# The MIT License (MIT)
Copyright (c) 2019 Cedric van Putten <me@bycedric.com>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
-31
View File
@@ -1,31 +0,0 @@
# Expo Build Web for GitHub Actions
> **This sub-action is no longer required and will be removed in the next release.**
> _See the [example workflows](../README.md#example-workflows) for more info._
Create a new app web bundle from your GitHub workflow.
Optionally, you can configure the properties of this bundle.
> Authentication is not required for this step.
## Usage
Below you can see an example of a build web action.
> Just like the [publish](../publish) action, you can customize the web bundle.
```hcl
action "Build web bundle" {
uses = "bycedric/ci-expo/build-web@master"
}
```
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
--- ---
<p align="center">
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
</p>
+2 -2
View File
@@ -2,8 +2,8 @@
set -e
if [ -n "$EXPO_USERNAME" ] && [ -n "$EXPO_PASSWORD" ]; then
expo login --username $EXPO_USERNAME --password $EXPO_PASSWORD
if [ -n "$EXPO_CLI_USERNAME" ] && [ -n "$EXPO_CLI_PASSWORD" ]; then
expo login --username $EXPO_CLI_USERNAME
else
echo 'Skipping Expo login, username and/or password not defined...'
fi
-11
View File
@@ -1,11 +0,0 @@
FROM bycedric/ci-expo:2
LABEL com.github.actions.name="Login with Expo (unofficial)"
LABEL com.github.actions.description="Authenticate with Expo your GitHub Actions workflow."
LABEL com.github.actions.icon="log-in"
LABEL com.github.actions.color="gray-dark"
COPY LICENSE.md README.md /
COPY entrypoint.sh /entrypoint-login.sh
ENTRYPOINT ["/entrypoint-login.sh"]
-21
View File
@@ -1,21 +0,0 @@
# The MIT License (MIT)
Copyright (c) 2019 Cedric van Putten <me@bycedric.com>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
-34
View File
@@ -1,34 +0,0 @@
# Expo Login for GitHub Actions
> **This sub-action is no longer required and will be removed in the next release.**
> _See the [example workflows](../README.md#example-workflows) for more info._
Authenticate the current workflow to publish new versions or create new builds.
It works relatively simple, you define the Expo credentials, and this action will do the rest.
## Usage
First you need to define the [secrets listed below][#secrets] through [GitHub secrets](https://developer.github.com/actions/managing-workflows/storing-secrets/).
After that, you can add the action below in your workflow.
```hcl
action "Login with Expo" {
uses = "bycedric/ci-expo/login@master"
secrets = ["EXPO_USERNAME", "EXPO_PASSWORD"]
}
```
### Secrets
* `EXPO_USERNAME` - **Required**. The email address or username of the Expo account.
* `EXPO_PASSWORD` - **Required**. The password of the Expo account.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
--- ---
<p align="center">
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
</p>
-10
View File
@@ -1,10 +0,0 @@
#!/bin/sh -l
set -e
if [ -n "$EXPO_USERNAME" ] && [ -n "$EXPO_PASSWORD" ]; then
expo login --username $EXPO_USERNAME --password $EXPO_PASSWORD
else
echo "Please define both EXPO_USERNAME and EXPO_PASSWORD."
exit 1
fi
-10
View File
@@ -1,10 +0,0 @@
FROM bycedric/ci-expo:2
LABEL com.github.actions.name="Publish to Expo (unofficial)"
LABEL com.github.actions.description="Publish a new release to Expo in your GitHub Actions workflow."
LABEL com.github.actions.icon="box"
LABEL com.github.actions.color="gray-dark"
COPY LICENSE.md README.md /
ENTRYPOINT ["/entrypoint.sh", "publish"]
-21
View File
@@ -1,21 +0,0 @@
# The MIT License (MIT)
Copyright (c) 2019 Cedric van Putten <me@bycedric.com>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
> in the Software without restriction, including without limitation the rights
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
-52
View File
@@ -1,52 +0,0 @@
# Expo Publish for GitHub Actions
> **This sub-action is no longer required and will be removed in the next release.**
> _See the [example workflows](../README.md#example-workflows) for more info._
Publish a brand new release straight from your GitHub workflow.
Optionally, you can configure the release channel or manifest file.
> Make sure to [login](../login) before this step, else your workflow won't have the permission to build a new version
## Usage
Below you can see an example of a publish action.
By default, it will publish to the default release channel with the manifest located at `app.json`.
```hcl
action "Publish to Expo" {
uses = "bycedric/ci-expo/publish@master"
}
```
### Release channels
You can also use a different release channel, to test before the actual build goes live for example.
```hcl
action "Publish to Expo" {
uses = "bycedric/ci-expo/publish@master"
args = "--release-channel staging"
}
```
### Custom manifest
When using non-default locations for the manifest, you can use the `--config` argument.
```hcl
action "Publish to Expo" {
uses = "bycedric/ci-expo/publish@master"
args = "--config custom-app.json"
}
```
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
--- ---
<p align="center">
with :heart: <a href="https://bycedric.com" target="_blank">byCedric</a>
</p>