From 990242f6e8fbd4c03d8ce08b56715c6591163178 Mon Sep 17 00:00:00 2001 From: partouf Date: Tue, 24 Oct 2023 02:46:41 +0200 Subject: [PATCH] upload wf test --- .github/workflows/ci.yml | 43 ------------------------------------ .github/workflows/upload.yml | 28 +++++++++++++++++++++++ 2 files changed, 28 insertions(+), 43 deletions(-) delete mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/upload.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index aca7d14e8..000000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Node.js CI - -on: - push: - branches: - - main - pull_request: - -jobs: - test: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [10.x, 12.x, 14.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm test - env: - CI: true - - - name: Coveralls Parallel - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.github_token }} - flag-name: run-${{ matrix.node-version }} - parallel: true - - finish: - needs: test - runs-on: ubuntu-latest - steps: - - name: Coveralls Finished - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.github_token }} - parallel-finished: true diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml new file mode 100644 index 000000000..9013b2ace --- /dev/null +++ b/.github/workflows/upload.yml @@ -0,0 +1,28 @@ +name: Upload + +on: workflow_dispatch + +jobs: + build_and_upload: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: npm + - name: Npm things + run: npm i + - name: Build + run: npm run prepack + - name: Upload to S3 + uses: prewk/s3-cp-action@v2 + with: + source: ./dist/release + dest: s3://ce-cdn.net/speedscope + flags: --recursive + aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} \ No newline at end of file