You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A GitHub action to setup the runway CLI! Questions, issues? Please use discussions or the issue tracker on the repository. If you like what you see here, **we appreciate a**:star: and if you'd subscribe to [(our monthly) mailing list](https://outreach.planetary-quantum.com/) and [check out the website to stay](https://www.runway.horse/) in the loop!
5
+
A GitHub action to setup the Runway CLI! Questions, issues? Please use discussions or the issue tracker on the repository. If you like what you see here, **we appreciate a**:star: and if you'd subscribe to [(our monthly) mailing list](https://outreach.planetary-quantum.com/) and [check out the website to stay](https://www.runway.horse/) in the loop!
6
+
7
+
---
8
+
9
+
This action supports amd64 and arm64 Linux runners.
> For the version, `latest` is fine. We strive to never break your workflows. But sometimes BC breaks are necessary. Because they usually involve our client and APIs, using `latest` helps to keep all interruptions to a minimum.
44
+
> [!TIP]
45
+
> For the Runway CLI version, `latest` is fine. We strive to never break your workflows. But sometimes BC breaks are necessary. Because they usually involve our client and APIs, using `latest` helps to keep all interruptions to a minimum.
46
+
47
+
> [!IMPORTANT]
48
+
> There's a BC break in this action in `v0.5.0`, previously the `public-key` and `private-key` inputs contained paths. They have been renamed to `public-key-location` and `private-key-location` to make their purpose known. The _new_ `public-key` and `private-key` inputs are optional and contain your (SSH) public and private key if used.
40
49
41
50
## Examples
42
51
43
-
### Setup the runway CLI to deploy
52
+
The following examples show how this action and the Runway CLI can be used in workflows.
53
+
54
+
### Deployments
44
55
45
-
This is an example workflow which shows runway CLI setup and then how to use the CLI to deploy your app `cool-app`.
56
+
This is an example workflow which shows Runway CLI setup and then how to use the CLI to deploy your application `cool-app`.
46
57
47
-
Once the client is setup, you can run all commands and play around with output and so on. To keep it simple, we're only deploying the code. :) Since the app exists already on runway we use the `runway gitremote` command to initialize the setup.
58
+
Once the CLI is setup, you can run all commands and play around with output and so on. To keep it simple, we're only deploying the code. :) Since the application exists already on Runway we use the `runway gitremote` command to initialize the setup.
- run: runway gitremote -a ${YOUR_APPLICATION_NAME}
79
85
- run: runway app deploy
86
+
- run: runway logout
80
87
```
81
88
82
89
### Running e2e tests
83
90
84
-
GitHub Actions provides a robust and comprehensive environment to run e2e tests and here's how runway can help:
91
+
GitHub Actions provides a robust and comprehensive environment to run e2e tests and here's how Runway can help:
85
92
86
-
The following workflow leverages some of the context in form of `${{ github.run_id }}`. We'll use this _identifier_ to deploy an app with a unique name. Another viable option is to use the pull-requests's number: `${{ github.event.number }}`.
93
+
The following workflow leverages some of the context in form of `${{ github.run_id }}`. We'll use this _identifier_ to deploy an application with a unique name. Another viable option is to use the pull-requests's number: `${{ github.event.number }}`.
87
94
88
-
Once deployed, you can run end-to-end tests against it and in the end, shut it down by deleting the app (and key). :) If you decide to keep the application to have a preview available, you may also do that.
95
+
Once deployed, you can run end-to-end tests against it and in the end, shut it down by deleting the application (and key). :) If you decide to keep the application to have a preview available, you may also do that.
In the previous example, we mentioned that keeping an app for people (humans!) to look at it, may be beneficial.
149
+
In the previous example, we mentioned that keeping an application for people (humans!) to look at it, may be beneficial.
140
150
141
-
The following workflow expands on those concepts and deletes an application from runway when a pull-request is closed (merged or closed without merge). This example _assumes_ that you constructed the application name like, `my-app-${{ github.event.number }}` (instead of `github.run_id`).
151
+
The following workflow expands on those concepts and deletes an application from Runway when a pull-request is closed (merged or closed without merge). This example _assumes_ that you constructed the application name like, `my-app-${{ github.event.number }}` (instead of `github.run_id`).
0 commit comments