From ef7175abf1cf0c3f908e4e5896f9aa73ad24cc0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Mon, 11 Nov 2024 10:27:40 +0100 Subject: [PATCH] add ci --- .github/workflows/deploy.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000000..f6f11bab76 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,30 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4.2.2 + + - 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 -- -u "André Silva " + env: + GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }} + CI: ""