Skip to content

Commit

Permalink
refactor: move cli to root as default
Browse files Browse the repository at this point in the history
This makes it easier and understandable for users using GitHub Actions, they only have to specify `uses = "bycedric/ci-expo@master"`.
  • Loading branch information
byCedric committed Apr 2, 2019
1 parent 923ed34 commit 4545e44
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 39 deletions.
2 changes: 1 addition & 1 deletion cli/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM bycedric/ci-expo:2

LABEL com.github.actions.name="Expo CLI"
LABEL com.github.actions.description="Use Expo CLI in your GitHub Actions workflow."
LABEL com.github.actions.description="Use any Expo command in your GitHub Actions workflow."
LABEL com.github.actions.icon="terminal"
LABEL com.github.actions.color="gray-dark"
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,42 @@
# Expo CLI for GitHub Actions

> Both GitHub Actions and this library are highly unstable, do not use in production.
> Both GitHub Actions and this library are highly unstable, do not use in production (yet).
Publish, build or manage your [Expo](https://expo.io) Project with GitHub Actions!
This repository contains a prebuilt base image with GitHub Actions implementations.
You can also use [the base image](base) in other Docker-based environments.

## Usage

By default, you have full access to the actual [Expo CLI](https://docs.expo.io/versions/latest/workflow/expo-cli).
That means that you should be able to use every function from the CLI in your actions.
Below you can see an example workflow to get you started right away!

> Check out both [login](./login) and [publish](./publish) actions for more info.
```hcl
workflow "Install, Authenticate, and Publish" {
on = "push"
resolves = ["Publish"]
}
action "Install" {
uses = "actions/npm@master"
args = "install"
}
action "Authenticate" {
needs = "Install"
uses = "bycedric/ci-expo/login@master"
secrets = ["EXPO_USERNAME", "EXPO_PASSWORD"]
}
action "Publish" {
needs = "Authenticate"
uses = "bycedric/ci-expo/publish@master"
}
```

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
Expand Down
21 changes: 0 additions & 21 deletions cli/LICENSE.md

This file was deleted.

16 changes: 0 additions & 16 deletions cli/README.md

This file was deleted.

0 comments on commit 4545e44

Please sign in to comment.