@@ -22,17 +22,15 @@ jobs:
22
22
run : |
23
23
mkdir -p lib/src/blobs/
24
24
cp argon2_library/libargon2.so.1 lib/src/blobs/libargon2-linux.so
25
- git add -f lib/src/blobs/libargon2-linux.so
26
25
git config user.name "Github Actions"
27
26
git config user.email "[email protected] "
28
27
if git diff-index --quiet HEAD
29
28
then
30
29
echo "No Changes. Done"
31
30
else
32
- git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/argon2_dart.git
33
- git fetch --unshallow secure-origin main
34
- git commit -m "create blobs for linux"
35
- git push -f secure-origin main
31
+ git add -f lib/src/blobs/libargon2-linux.so
32
+ git commit -m "Create Native Library for Linux"
33
+ git push origin main
36
34
fi
37
35
mac-build :
38
36
runs-on : macos-latest
@@ -54,17 +52,15 @@ jobs:
54
52
- name : copy and push library
55
53
run : |
56
54
cp argon2_library/libargon2.1.dylib lib/src/blobs/libargon2-darwin.dylib
57
- git add -f lib/src/blobs/libargon2-darwin.dylib
58
55
git config user.name "Github Actions"
59
56
git config user.email "[email protected] "
60
57
if git diff-index --quiet HEAD
61
58
then
62
59
echo "No Changes. Done"
63
60
else
64
- git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/argon2_dart.git
65
- git commit -m "create blobs for mac"
66
- git fetch --unshallow secure-origin main
67
- git push secure-origin main
61
+ git add -f lib/src/blobs/libargon2-darwin.dylib
62
+ git commit -m "Create Native Library for Mac"
63
+ git push origin main
68
64
fi
69
65
windows-build :
70
66
runs-on : windows-latest
@@ -88,15 +84,13 @@ jobs:
88
84
- name : copy and push library
89
85
run : |
90
86
Copy-Item “argon2_library\vs2015\build\Argon2OptDll.dll” -Destination “lib\src\blobs\libargon2-win.dll”
91
- git add -f lib\src\blobs\libargon2-win.dll
92
87
git config user.name "Github Actions"
93
88
git config user.email "[email protected] "
94
89
if git diff-index --quiet HEAD
95
90
then
96
91
echo "No Changes. Done"
97
92
else
98
- git remote add secure-origin https://${{ secrets.ACCESS_TOKEN }}@github.com/tmthecoder/argon2_dart.git
99
- git commit -m "create blobs for mac"
100
- git fetch --unshallow secure-origin main
101
- git push secure-origin main
93
+ git add -f lib\src\blobs\libargon2-win.dll
94
+ git commit -m "Create Native Library for Windows"
95
+ git push origin main
102
96
fi
0 commit comments