diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4c399abe..77735509 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -13,17 +13,14 @@ jobs: - uses: actions/checkout@v3 with: repository: teaxyz/pantry.core - - uses: actions/cache@v3 - with: - path: | - ~/.deno - ~/.cache/deno - key: ${{ runner.os }}-deno-cd-${{ hashFiles('deno.jsonc')}} - - uses: teaxyz/setup@v0 + + - uses: teaxyz/pantry.core/.github/actions/setup-brewkit@main + - run: ./scripts/map-projects-to-githubs.ts env: WATCHER_URL: ${{ secrets.WATCHER_URL }} TEA_API_TOKEN: ${{ secrets.TEA_API_TOKEN }} + - run: ./scripts/has-artifacts.ts ${{ github.repository }} ${{ github.sha }} >>$GITHUB_ENV env: GITHUB_TOKEN: ${{github.token}} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d465743d..95caacf3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: RESULT="$RESULT $y" done echo "diff=$RESULT" >> $GITHUB_OUTPUT - build: + ci: strategy: fail-fast: false matrix: diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index c178a119..3597def2 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -1,4 +1,7 @@ -name: cleanup +# cleans up our S3 staging area if a PR is closed without merge + +name: teaxyz s3 cleanup + on: pull_request: types: [closed] @@ -14,6 +17,7 @@ jobs: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 + - name: remove staged artifacts run: | REPO=$(echo ${{github.repository}} | sed -e 's_teaxyz/__')