From 7ad68eac26434faba65e2fa3fefbcc88db2a4e51 Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Fri, 24 Nov 2023 15:47:35 +0100 Subject: [PATCH] testing ci --- .gitea/workflows/develop-deploy.yml | 26 ++++++++++++++++++++++++++ .gitea/workflows/main-deploy.yml | 17 +++++++++++++++++ .gitea/workflows/pr-build.yml | 18 ++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 .gitea/workflows/develop-deploy.yml create mode 100644 .gitea/workflows/main-deploy.yml create mode 100644 .gitea/workflows/pr-build.yml diff --git a/.gitea/workflows/develop-deploy.yml b/.gitea/workflows/develop-deploy.yml new file mode 100644 index 0000000..105b456 --- /dev/null +++ b/.gitea/workflows/develop-deploy.yml @@ -0,0 +1,26 @@ +name: Build Site Develop +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: Publish + uses: nogsantos/scp-deploy@master + with: + src: ./dist/* + host: ${{ secrets.SSH_HOST }} + remote: ${{ variables.SSH_DIR }} + port: 69 + user: ${{ secrets.SSH_USER }} + key: ${{ secrets.SSH_KEY }} \ 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..f206bc4 --- /dev/null +++ b/.gitea/workflows/main-deploy.yml @@ -0,0 +1,17 @@ +name: Build Site Main +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..5a402e7 --- /dev/null +++ b/.gitea/workflows/pr-build.yml @@ -0,0 +1,18 @@ +name: Build Site PR +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