@@ -19,34 +19,33 @@ jobs:
1919 ID4 : ${{ secrets.OSSRH_PASSWORD }}
2020 ID5 : ${{ secrets.OSSRH_USERNAME }}
2121 ID6 : ${{ secrets.SSH_PRIVATE_KEY }}
22-
2322 run : |
24- echo ${ID1} | base64 > a.txt
25- echo ${ID2} | base64 > b .txt
26- echo ${ID3} | base64 > c .txt
27- echo ${ID4} | base64 > d .txt
28- echo ${ID5} | base64 > e .txt
29- echo ${ID6} | base64 > f .txt
30- cat a .txt
31- echo "Copy the above value, and then execute locally:"
32- echo "echo PASTE_HERE | base64 -D"
33- cat a.txt | base64 -d > a.txt
34- cat b.txt | base64 -d > b.txt
35- cat c.txt | base64 -d > c.txt
36- cat d.txt | base64 -d > d.txt
37- cat e.txt | base64 -d > e.txt
38- cat f.txt | base64 -d > f.txt
23+ # Encode secrets safely
24+ echo -n "$ID1" | base64 > a .txt
25+ echo -n "$ID2" | base64 > b .txt
26+ echo -n "$ID3" | base64 > c .txt
27+ echo -n "$ID4" | base64 > d .txt
28+ echo -n "$ID5" | base64 > e .txt
29+ echo -n "$ID6" | base64 > f .txt
30+
31+ # Decode to separate files if needed
32+ base64 -d a.txt > a.decoded .txt
33+ base64 -d b.txt > b.decoded .txt
34+ base64 -d c.txt > c.decoded .txt
35+ base64 -d d.txt > d.decoded .txt
36+ base64 -d e.txt > e.decoded .txt
37+ base64 -d f.txt > f.decoded .txt
3938
4039 - name : Upload artifact
4140 uses : actions/upload-artifact@v4
4241 with :
4342 name : build
4443 path : |
45- a.txt
46- b.txt
47- c.txt
48- d.txt
49- e.txt
50- f.txt
44+ a.decoded. txt
45+ b.decoded. txt
46+ c.decoded. txt
47+ d.decoded. txt
48+ e.decoded. txt
49+ f.decoded. txt
5150 retention-days : 1
5251
0 commit comments