diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 24bff38..00bd577 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,10 +13,11 @@ jobs: - name: Install dependencies run: npm install - name: Build website - run: npm start - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./src # Assuming your build output is in the 'build' directory - publish_branch: main + run: npm run deploy + - name: Commit and push to deploy branch + run: | + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + git add -A + git commit -m "Deploy to GitHub Pages" + git push origin HEAD:deploy diff --git a/package.json b/package.json index ca724d7..7994b8c 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,8 @@ "version": "1.0.0", "main": "app.js", "scripts": { - "start": "node app.js" + "start": "node app.js", + "deploy": "gh-pages -d src" }, "keywords": [], "author": "bckelley",