diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml deleted file mode 100644 index 16cc52f..0000000 --- a/.github/workflows/pull-request.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: 'Pull Request' -on: - pull_request: - branches: - - main - - next - push: - branches: - - main - - next - -jobs: - deploy: - name: Build and Deploy - runs-on: ubuntu-latest - permissions: - # Required to checkout the code - contents: read - # Required to put a comment into the pull-request - pull-requests: write - - outputs: - deploy-url: ${{ steps.netlify.outputs.deploy-url }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20.x' - - - name: Cache Node.js modules - id: cache-node-modules - uses: actions/cache@v4 - with: - path: node_modules - key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node-modules- - - - name: Install dependencies - run: npm install - - - name: Build - run: npm run build - - - name: Deploy to Netlify - uses: nwtgck/actions-netlify@v3.0 - with: - publish-dir: './dist' - production-branch: main - production-deploy: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: 'Deploy from GitHub Actions' - enable-pull-request-comment: true - enable-commit-comment: true - overwrites-pull-request-comment: true - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - timeout-minutes: 1