diff --git a/.gitea/workflows/develop-deploy.yml b/.gitea/workflows/develop-deploy.yml new file mode 100644 index 0000000..1728e67 --- /dev/null +++ b/.gitea/workflows/develop-deploy.yml @@ -0,0 +1,25 @@ +name: Build Site +on: + push: + branches: + - develop + +jobs: + Build-Site: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '16.x' + - run: npm install + - run: npm run build + - name: Run sshpass commands + uses: matheusvanzan/sshpass-action@v2 + with: + host : ${{ secrets.SSH_HOST }} + port: 69 + user: ${{ secrets.SSH_USER }} + pass: ${{ secrets.SSH_PWD }} + run: ls -al \ No newline at end of file diff --git a/.gitea/workflows/main-deploy.yml b/.gitea/workflows/main-deploy.yml new file mode 100644 index 0000000..db330f8 --- /dev/null +++ b/.gitea/workflows/main-deploy.yml @@ -0,0 +1,17 @@ +name: Build Site +on: + push: + branches: + - main + +jobs: + Build-Site: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '16.x' + - run: npm install + - run: npm run build \ No newline at end of file diff --git a/.gitea/workflows/pr-build.yml b/.gitea/workflows/pr-build.yml new file mode 100644 index 0000000..2d22317 --- /dev/null +++ b/.gitea/workflows/pr-build.yml @@ -0,0 +1,18 @@ +name: Build Site +on: + pull_request: + branches: + - 'feat/**' + - 'develop' + +jobs: + Build-Site: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '16.x' + - run: npm install + - run: npm run build \ No newline at end of file