File tree 4 files changed +20
-17
lines changed
4 files changed +20
-17
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
CHANGED_FILES=$1
3
3
echo " Pushing '$CHANGED_FILES ' as $GITHUB_ACTOR "
4
-
5
- # git config --global github.user "$GITHUB_ACTOR"
6
- # git config --global user.name "$GITHUB_ACTOR"
7
- # git config --global user.email "[email protected] "
8
- # git add tools/get.exe
4
+ git config --global github.user " $GITHUB_ACTOR "
5
+ git config --global user.name " $GITHUB_ACTOR "
6
+ git config --global user.email " $GITHUB_ACTOR @users.noreply.github.com"
9
7
for tool in $CHANGED_FILES ; do
10
8
echo " git add tools/$tool .exe"
11
9
done
12
- # git commit -m "Push binary to tools"
13
- # git push
14
-
10
+ git commit -m " Push binary to tools"
11
+ git push
Original file line number Diff line number Diff line change @@ -107,14 +107,19 @@ jobs:
107
107
for tool in ${{ env.CHANGED_TOOLS }}; do
108
108
pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=.github/pytools/espressif.ico tools/$tool.py
109
109
done
110
- # - name: Sign binaries
111
- # if: matrix.os == 'windows-latest'
112
- # env:
113
- # CERTIFICATE: ${{ secrets.CERTIFICATE }}
114
- # CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
115
- # shell: pwsh
116
- # run: |
117
- # if exist ./${{ env.DISTPATH }}/get.exe ./.github/pytools/Sign-File.ps1 -Path ./${{ env.DISTPATH }}/get.exe
110
+ - name : Sign binaries
111
+ if : matrix.os == 'windows-latest'
112
+ env :
113
+ CERTIFICATE : ${{ secrets.CERTIFICATE }}
114
+ CERTIFICATE_PASSWORD : ${{ secrets.CERTIFICATE_PASSWORD }}
115
+ shell : pwsh
116
+ run : |
117
+ $data = Write-Output ${{ env.CHANGED_TOOLS }}
118
+ foreach ( $node in $data )
119
+ {
120
+ ./.github/pytools/Sign-File.ps1 -Path ./${{ env.DISTPATH }}/$node.exe
121
+ }
122
+ # if exist ./${{ env.DISTPATH }}/get.exe ./.github/pytools/Sign-File.ps1 -Path ./${{ env.DISTPATH }}/get.exe
118
123
- name : Test binaries
119
124
shell : bash
120
125
run : |
@@ -130,7 +135,6 @@ jobs:
130
135
for tool in ${{ env.CHANGED_TOOLS }}; do
131
136
cp -f ./${{ env.DISTPATH }}/$tool.exe tools/$tool.exe
132
137
done
133
- # cp -Force ./${{ env.DISTPATH }}/get.exe tools/get.exe
134
138
bash .github/scripts/upload_py_tools.sh "${{ env.CHANGED_TOOLS }}"
135
139
- name : Archive artifact
136
140
uses : actions/upload-artifact@master
Original file line number Diff line number Diff line change @@ -351,3 +351,4 @@ def main(args):
351
351
352
352
if __name__ == '__main__' :
353
353
sys .exit (main (sys .argv ))
354
+
Original file line number Diff line number Diff line change @@ -238,3 +238,4 @@ def identify_platform():
238
238
else :
239
239
get_tool (tool )
240
240
print ('Platform Tools Installed' )
241
+
You can’t perform that action at this time.
0 commit comments