Skip to content

Commit 4c90658

Browse files
authored
Publish installer (#11)
1 parent aea5d31 commit 4c90658

File tree

3 files changed

+39
-6
lines changed

3 files changed

+39
-6
lines changed

.github/workflows/cd.installer.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
pull_request:
3+
paths:
4+
- .github/workflows/cd.installer.yml
5+
push:
6+
branches: main
7+
paths:
8+
- installer.sh
9+
- .github/workflows/cd.installer.yml
10+
11+
jobs:
12+
cd:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: aws-actions/configure-aws-credentials@v2
18+
with:
19+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
20+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
21+
aws-region: us-east-2
22+
23+
- run: aws s3 cp ./installer.sh s3://${{ secrets.AWS_S3_BUCKET }}/installer.sh
24+
25+
- run: aws cloudfront create-invalidation
26+
--distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }}
27+
--paths / /installer.sh
File renamed without changes.

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,17 @@ $ mash ai chat --help # or https://mash.pkgx.sh/ai/chat/
4040

4141
## Installing `mash`
4242

43-
`mash` uses `pkgx` for packaging primitives so you may as well use `pkgx` to
44-
run `mash`:
43+
To install `mash` and `pkgx`:
4544

4645
```sh
46+
curl https://mash.pkgx.sh | sh
47+
# ^^ installs /usr/local/bin/mash and /usr/local/bin/pkgx
48+
```
49+
50+
If you prefer, you can run `mash` via `pkgx`:
51+
52+
```sh
53+
$ brew install pkgxdev/made/pkgx # or curl https://pkgx.sh | sh
4754
$ pkgx mash
4855

4956
# or install it via pkgx:
@@ -211,12 +218,11 @@ $ bash ./stargazer
211218
# ^^ they will need to read the script to determine deps and interpreter
212219
```
213220

214-
Hackers can use your script without installing `pkgx` first via our cURL
215-
one-liner. This executes the script but doesn’t install pkgx or any other
216-
pkgs:
221+
Hackers can use your script without installing `pkgx` or `mash` first via our
222+
cURL one-liner. This executes the script but doesn’t install anything:
217223

218224
```sh
219-
sh <(curl https://pkgx.sh) mash your-script-name
225+
sh <(curl https://mash.pkgx.sh) <category> <scriptname>
220226
```
221227

222228

0 commit comments

Comments
 (0)