diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index a2411ef..389e3ef 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -28,6 +28,11 @@ jobs: - name: Install dependencies run: npm ci + - name: Install doctl + uses: digitalocean/action-doctl@v2 + with: + token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} + - name: Build run: ./build.sh @@ -52,11 +57,6 @@ jobs: AWS_ENDPOINT_URL: 'https://${{ vars.DIGITALOCEAN_SPACES_REGION }}.digitaloceanspaces.com' AWS_DEFAULT_REGION: 'us-east-1' - - name: Install doctl - uses: digitalocean/action-doctl@v2 - with: - token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} - - name: Invalidate Spaces Cache run: doctl compute cdn flush $DIGITALOCEAN_CDN_ID env: