diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index ce0f3ca1..5cf29d56 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -3,7 +3,7 @@ name: Deploy Staging - Surge.sh on: push: branches: - - 'develop' + - 'develop' env: NODE: 14 @@ -34,46 +34,12 @@ jobs: path: node_modules key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} - - name: Cache dist - uses: actions/cache@v2 - id: cache-dist - with: - path: dist - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.workflow }}-${{ github.sha }} - - name: Install run: yarn install - name: Build staging run: yarn stage - deploy: - runs-on: ubuntu-latest - needs: build - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Restore node_modules - uses: actions/cache@v2 - id: cache-node-modules - with: - path: node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} - - - name: Restore dist cache - uses: actions/cache@v2 - id: cache-dist - with: - path: dist - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.workflow }}-${{ github.sha }} - - - name: Use Node.js ${{ env.NODE }} - uses: actions/setup-node@v1 - with: - node-version: ${{ env.NODE }} - - name: Deploy Staging to Surge run: | cp ./dist/index.html ./dist/200.html