Skip to content

Commit 034700a

Browse files
committed
Test github actions [DEPLOYMENT]
1 parent de89f8e commit 034700a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,14 @@ jobs:
243243
touch .nojekyll
244244
pwd
245245
ls -l
246+
SRC_BRANCH="${{ github.ref_name }}"
247+
TARGET_BRANCH="binary-osx-$SRC_BRANCH"
246248
git init
247-
git checkout --orphan "${{ github.ref_name }}"
249+
git checkout --orphan "$TARGET_BRANCH"
248250
git add .
249251
git commit -m "Deploy from ${{ github.repository }}@${{ github.sha }}"
250252
git status
251-
git push --force --quiet "https://x-access-token:${{ secrets.XEMU_DEPLOY_TOKEN }}@github.com/lgblgblgb/xemu-binaries.git" "${{ github.ref_name }}:refs/heads/${{ github.ref_name }}"
253+
git push --force --quiet "https://x-access-token:${{ secrets.XEMU_DEPLOY_TOKEN }}@github.com/lgblgblgb/xemu-binaries.git" "$TARGET_BRANCH:refs/heads/$TARGET_BRANCH"
252254
cd ..
253255
254256
- name: Announce deployment

0 commit comments

Comments
 (0)