diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..0e032cfa6 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Setup Node + uses: actions/setup-node@v4.1.0 + with: + node-version: 23.1.0 + + - name: Install Dependencies + run: cd webpage && npm install + + - name: Deploy + run: | + git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/repairbench/repairbench.github.io.git + cd webpage && npm run deploy + env: + GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}