From 5711770740e93a6739a6f0b36ea639c2694e48bc Mon Sep 17 00:00:00 2001 From: Dominik Kohler Date: Tue, 25 Feb 2025 17:53:53 +0100 Subject: [PATCH] test --- .github/workflows/deploy.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index eb45443..defae19 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,16 +18,6 @@ jobs: with: submodules: recursive - - name: Authenticate to Google Cloud - uses: google-github-actions/auth@v2 - with: - credentials_json: ${{ secrets.GCLOUD_API_KEYFILE }} - - - name: Set up Cloud SDK - uses: google-github-actions/setup-gcloud@v2 - with: - project_id: ${{ env.GCLOUD_PROJECT }} - - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: @@ -38,10 +28,20 @@ jobs: run: mkdir ./public - name: Build site - run: hugo --debug debug -s ./src -d ./public + run: hugo --debug -s ./src -d ./public - name: List public directory run: ls -la . + - name: Authenticate to Google Cloud + uses: google-github-actions/auth@v2 + with: + credentials_json: ${{ secrets.GCLOUD_API_KEYFILE }} + + - name: Set up Cloud SDK + uses: google-github-actions/setup-gcloud@v2 + with: + project_id: ${{ env.GCLOUD_PROJECT }} + - name: Deploy to Google Cloud Storage run: gsutil -m cp -r ./public/* gs://docs.lexgate.ch \ No newline at end of file