From 9d00c33e555fa430e9d897e4be78359d9cc34538 Mon Sep 17 00:00:00 2001 From: "Quek, Yao Jing" Date: Fri, 9 Feb 2024 13:26:47 +0800 Subject: [PATCH] Test with new branch --- .github/workflows/general.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/general.yml b/.github/workflows/general.yml index 373421a48..26ae0fb99 100644 --- a/.github/workflows/general.yml +++ b/.github/workflows/general.yml @@ -111,12 +111,17 @@ jobs: - name: Build Static Web run: tool/gh_actions/devtool/build_web.sh - - - name: Create release branch and push changes + + # 1. checkout to branch artifacts + # 2. Do not ignore build/ folder (just for artifacts branch) + # 3. Commit everythings including the build/ folder + # 4. Push the new branch artifacts + + - name: Create artifact branch and push changes run: | git config --global user.name "${GITHUB_ACTOR}" git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" - git checkout -b artifact + git checkout -b artifacts sed -i '/build\//d' .gitignore # Remove the line that ignores the build directory git add . git commit -m "Add build artifacts and modify .gitignore" @@ -127,6 +132,6 @@ jobs: uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - branch: artifact + branch: artifacts