From 0ac4898027ab5bce7aeb648231a337d4482e5c0e Mon Sep 17 00:00:00 2001 From: Joshua King Date: Tue, 28 Apr 2026 08:35:18 -0400 Subject: [PATCH] Updates --- .gitea/workflows/dev.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/dev.yml b/.gitea/workflows/dev.yml index 5daf743..393cce2 100644 --- a/.gitea/workflows/dev.yml +++ b/.gitea/workflows/dev.yml @@ -8,27 +8,19 @@ on: jobs: build-test: - runs-on: ubuntu-latest + runs-on: ubuntu-dotnet steps: - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '9.0.x' - - name: Restore backend run: dotnet restore - working-directory: ./backend - name: Build backend run: dotnet build --no-restore --configuration Release - working-directory: ./backend - name: Test backend run: dotnet test --no-build --configuration Release - working-directory: ./backend - name: Setup Node uses: actions/setup-node@v4 @@ -42,3 +34,17 @@ jobs: - name: Build frontend run: npm run build working-directory: ./frontend + + deploy-dev: + needs: build-test + if: gitea.event_name == 'push' + runs-on: ubuntu-latest + + steps: + - name: Deploy dev + run: | + echo "${{ secrets.DEV_DEPLOY_SSH_KEY }}" > /tmp/dev_key + chmod 600 /tmp/dev_key + ssh -i /tmp/dev_key -o StrictHostKeyChecking=no \ + ${{ secrets.DEV_DEPLOY_USER }}@${{ secrets.DEV_DEPLOY_HOST }} \ + "${{ secrets.DEV_DEPLOY_PATH }}/deploy.sh" \ No newline at end of file