diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2f6af94..6ebe37e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,16 +25,15 @@ jobs: - name: Install dependencies run: npm install - - name: Set Git user - run: | - git config --global user.email "github-actions-bot@users.noreply.github.com" - git config --global user.name "GitHub Actions" + - name: Run build + run: npm run build - - name: Run deploy script - run: npm run deploy - env: - REPO: https://${{ secrets.GITHUB_TOKEN }}@github.com/rtxdata/rtxdata.github.io.git + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v2 + with: + token: ${{ github.token }} + artifact_name: build permissions: - contents: write pages: write + id-token: write diff --git a/package.json b/package.json index 4374d9d..920a4c4 100644 --- a/package.json +++ b/package.json @@ -20,9 +20,7 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject", - "predeploy": "npm run build", - "deploy": "gh-pages -d build -b main -r $REPO" + "eject": "react-scripts eject" }, "eslintConfig": { "extends": [