File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 4545 run : |
4646 # Create scratch space for staging branch
4747 mkdir asf-staging
48+
4849 cd asf-staging
50+
4951 # Check if asf-staging branch exists
5052 if git show-ref --verify --quiet refs/remotes/origin/asf-staging; then
5153 echo "asf-staging branch exists, checking it out"
@@ -54,23 +56,25 @@ jobs:
5456 echo "asf-staging branch doesn't exist!"
5557 exit 1
5658 fi
59+
60+ # Remove existing contents
61+ rm -rf *
5762
58- - name : Copy build output to asf-staging branch
59- run : |
6063 # Copy all contents from output directory to temporary directory
6164 if [ -d "output" ]; then
62- cp -r output/* asf-staging 2>/dev/null || true
65+ cp -r ../ output/* . 2>/dev/null || true
6366 fi
6467
68+ # Restore top level files
69+ git restore .htaccess .asf.yaml
70+
6571 # Add all files
6672 git add .
6773
6874 # Show what will be committed
6975 echo "Files to be committed:"
7076 git status --porcelain
7177
72- - name : Commit and push to asf-staging branch
73- run : |
7478 # Check if there are changes to commit
7579 if git diff --staged --quiet; then
7680 echo "No changes to commit"
You can’t perform that action at this time.
0 commit comments