From 9f60ce6fb76b2d45e320e88432aef94672884d99 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Tue, 4 Jul 2023 12:31:09 +0000 Subject: [PATCH] Actualiser .gitea/workflows/staging.yaml --- .gitea/workflows/{build.yaml => staging.yaml} | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) rename .gitea/workflows/{build.yaml => staging.yaml} (62%) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/staging.yaml similarity index 62% rename from .gitea/workflows/build.yaml rename to .gitea/workflows/staging.yaml index 2ad307f..ba4cbd9 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/staging.yaml @@ -1,4 +1,4 @@ -name: Production +name: Staging on: push: @@ -6,7 +6,7 @@ on: - main jobs: - deploy: + build_and_deploy_staging: runs-on: ubuntu-latest steps: - name: Checkout repository @@ -35,18 +35,4 @@ jobs: username: 'root' privateKey : ${{ secrets.SSH_KEY }} rmRemote: true - dotfiles: true - - - name: Build production - run: hugo --gc --minify -b https://blog.broillet.ch/ - - - name: Copy (scp) prod build to blog server - uses: https://github.com/garygrossgarten/github-action-scp@release - with: - local: 'public' - remote: /var/www/html/prod - host: ${{ secrets.SSH_HOSTNAME }} - username: 'root' - privateKey : ${{ secrets.SSH_KEY }} - rmRemote: true dotfiles: true \ No newline at end of file