-
Notifications
You must be signed in to change notification settings - Fork 28
37 lines (31 loc) · 931 Bytes
/
cd.installer.yml
File metadata and controls
37 lines (31 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: cd·installer
on:
pull_request:
paths:
- .github/workflows/cd.installer.yml
push:
branches: main
paths:
- installer.sh
- .github/workflows/cd.installer.yml
jobs:
cd:
if: github.repository == 'pkgxdev/mash'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: aws-actions/configure-aws-credentials@v6
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- run: aws s3 cp ./installer.sh s3://${{ secrets.AWS_S3_BUCKET }}/installer.sh
- run: aws cloudfront create-invalidation
--distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }}
--paths / /installer.sh
test:
needs: cd
runs-on: ubuntu-latest
steps:
- run: curl -L mash.pkgx.sh | sh
- run: mash demo test-pattern