Skip to content

Commit 0a54411

Browse files
Update Windows build workflow to use PAT for push
1 parent 2761567 commit 0a54411

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build-windows.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,18 @@ jobs:
4040
# 6. Commit EXE to new branch using PAT
4141
- name: Commit EXE to new branch
4242
env:
43-
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
43+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
4444
run: |
4545
git checkout -b windows-build
4646
mkdir -p exe
4747
mv dist/main.exe exe/
4848
git add exe/main.exe
4949
git commit -m "Add Windows EXE build"
50-
git push --set-upstream https://jonasvanleeuwen19:${PAT_TOKEN}@github.com/jonasvanleeuwen19/youtube-player.git windows-build
50+
# force remote to use PAT
51+
git remote set-url origin https://jonasvanleeuwen19:${PAT_TOKEN}@github.com/jonasvanleeuwen19/youtube-player.git
52+
git push --set-upstream origin windows-build
5153
52-
# 7. Upload artifact
54+
# 7. Upload artifact
5355
- name: Upload artifact
5456
uses: actions/upload-artifact@v4
5557
with:

0 commit comments

Comments
 (0)