From cb714a753ba1173fa94e2035b888656669076818 Mon Sep 17 00:00:00 2001 From: J Blackman Date: Tue, 14 May 2024 13:21:30 +1000 Subject: [PATCH] Delete .github/workflows/app-build.yml (#3952) --- .github/workflows/app-build.yml | 84 --------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 .github/workflows/app-build.yml diff --git a/.github/workflows/app-build.yml b/.github/workflows/app-build.yml deleted file mode 100644 index 1e5ca9f79f..0000000000 --- a/.github/workflows/app-build.yml +++ /dev/null @@ -1,84 +0,0 @@ -# Builds Betaflight Configurator for Web Deployment. - -name: App Build (Web) - -on: - workflow_call: - inputs: - path: - description: 'Specifies the path to use in the output of the build' - required: false - type: string - secrets: - AWS_S3_BUCKET: - required: true - AWS_ACCESS_KEY_ID: - required: true - AWS_SECRET_ACCESS_KEY: - required: true - AWS_REGION: - required: true - -jobs: - test: - name: Test - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v4 - - - name: Cache node_modules - uses: actions/cache@v4 - with: - path: node_modules/ - key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - - - run: yarn install --immutable --immutable-cache --check-cache - - - name: Run unit tests - run: yarn test - - build: - name: Build (Web App) - needs: test - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v4 - - - name: Cache Vite - uses: actions/cache@v4 - with: - path: cache/ - key: vite-${{ inputs.path }}-${{ hashFiles('vite.config.js') }} - - - name: Cache node_modules - uses: actions/cache@v4 - with: - path: node_modules/ - key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }} - - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - - - run: yarn install --immutable --immutable-cache --check-cache - - - run: yarn build - - - name: Push to AWS - if: github.repository_owner == 'betaflight' - uses: jakejarvis/s3-sync-action@master - with: - args: --delete - env: - AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: ${{ secrets.AWS_REGION }} - SOURCE_DIR: 'src/dist' - DEST_DIR: ${{ inputs.path }}