From 64e06fe2a34f429ebd24f2dfa924e78ec8116e1b Mon Sep 17 00:00:00 2001 From: Konstantin Kollar Date: Sat, 6 Apr 2024 17:46:03 +0200 Subject: [PATCH] Deploy CI CD --- .gitea/workflows/deploy.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..9f0a453 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,29 @@ +name: Deploy Hugo Site +run-name: ${{ gitea.actor }} is deploying +on: + push: + branches: + - main + +jobs: + Deploy Batch Tools on beta.batch.tools: + runs-on: node-18 + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Install Tailwind and build + run: | + cd ./themes/bluewater + npm install + npm run build + cd ../.. + - name: Create SSH keys + run: | + mkdir -p ~/.ssh/ + echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa + echo "${{ secrets.KNOWN_HOSTS }}" > ~/.ssh/known_hosts + chmod 600 ~/.ssh/id_rsa + - name: Install rsync + run: | + apt-get update + apt-get install rsync -y \ No newline at end of file