-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
87 additions
and
197 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
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
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,56 +1,41 @@ | ||
![tea](https://tea.xyz/banner.png) | ||
|
||
* [`installer.sh`](./installer.sh) is delivered when you `curl tea.xyz`. | ||
* This repository also provides the `tea` GitHub Action. | ||
* This repository provides the `tea` GitHub Action. | ||
* It also hosts [`installer.sh`](./installer.sh); the result of `curl tea.xyz`. | ||
|
||
# GitHub Action 0.18.3 | ||
|
||
# GitHub Action | ||
|
||
```yaml | ||
- uses: teaxyz/setup@v0 | ||
- uses: teaxyz/setup@v1 | ||
``` | ||
Installs tea, your dependencies (computed from your developer environment), | ||
adds your deps to `PATH` and exports some other *tea’ish* variables like | ||
`VERSION`. | ||
Installs the latest version of `tea`. | ||
|
||
See [`action.yml`] for all inputs and outputs, but here’s the usual ones: | ||
|
||
```yaml | ||
- uses: teaxyz/setup@v0 | ||
- uses: teaxyz/setup@v1 | ||
with: | ||
+: | | ||
deno.land^1.30 | ||
rust-lang.org^1.60 | ||
+: [email protected] [email protected] | ||
``` | ||
|
||
Our packages are named after their homepages, to see what is available you | ||
can browse the pantry on our website: | ||
[tea.xyz] (we agree this isn’t great UX) | ||
|
||
## Magic | ||
### Shell Integration | ||
|
||
We cannot install our shell magic into GitHub Actions. So unless your dev-env | ||
includes the package or you manually add the package with `+:` you will need | ||
to ensure it is called with a `tea` prefix, eg. `tea npx`. | ||
We cannot integrate with the GitHub Actions shell. But you probably don’t | ||
need it. | ||
|
||
## Should you Cache `~/.tea`? | ||
### Should you Cache `~/.tea`? | ||
|
||
No. tea packages are just tarballs. Caching is just a tarball. You’ll likely | ||
just slow things down. | ||
|
||
## Interesting Usages | ||
|
||
At tea, we consider the version in the `README` the definitive version. | ||
Thus we use GitHub Actions to automatically tag and publish that version when | ||
the README is edited and the version changes. | ||
|
||
See our CI scripts for details. | ||
|
||
| ||
|
||
|
||
# `tea` Installer | ||
|
||
To install tea: | ||
To install `tea`: | ||
|
||
```sh | ||
$ curl https://tea.xyz | sh | ||
|
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
Oops, something went wrong.