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