Skip to content

new installer logic etc. #10

new installer logic etc.

new installer logic etc. #10

Workflow file for this run

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@v4
- uses: aws-actions/configure-aws-credentials@v4
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