You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2022/07/18 21:14:56 UTC

[royale-website] branch 11ty updated: Github Actions: better deploy

This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch 11ty
in repository https://gitbox.apache.org/repos/asf/royale-website.git


The following commit(s) were added to refs/heads/11ty by this push:
     new f26b6b4d Github Actions: better deploy
f26b6b4d is described below

commit f26b6b4d7cc29f0163694cd4c2c6fc81c1b866f6
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Mon Jul 18 14:10:12 2022 -0700

    Github Actions: better deploy
---
 .github/workflows/build.yml | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c8407800..3f20b08e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -17,9 +17,12 @@ jobs:
         run: npm ci
       - name: Build website
         run: npm run build
-      - name: Upload Site
+      - name: Deploy to asf-staging
         if: ${{ github.repository_owner == 'apache' && github.event_name != 'pull_request' && github.ref_name == '11ty' }}
-        uses: JamesIves/github-pages-deploy-action@v4
-        with:
-          branch: asf-staging
-          folder: _site
+        run: |
+          git fetch
+          git checkout asf-staging
+          cp -a _site/. .
+          git add -A
+          git commit -m "Deploy site"
+          git push origin asf-staging