diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..65d1a5d --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,31 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - master + +permissions: + contents: write + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + # Скачиваем репозиторий + - name: Checkout repository + uses: actions/checkout@v3 + + # Устанавливаем Node.js + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 22 + + # Устанавливаем зависимости + - name: Install dependencies + run: npm install + + # Собираем проект + - name: Build project + run: npm run build