We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9549e70 + 8949bcd commit b686be7Copy full SHA for b686be7
.github/workflows/build.yml
@@ -63,6 +63,11 @@ jobs:
63
echo "${ENDLESSCLIENT_CA_CHAIN}" >> client.crt
64
echo "${ENDLESSCLIENT_KEY}" > client.key
65
chmod 600 client.key
66
+ if [ "${{ github.ref_name }}" == "main" ]; then
67
+ PUSH_ARTIFACTS="true"
68
+ else
69
+ PUSH_ARTIFACTS="false"
70
+ fi
71
mkdir -p ~/.config
72
cat > ~/.config/buildstream.conf << EOF
73
# BuildStream user configuration
@@ -89,7 +94,7 @@ jobs:
89
94
artifacts:
90
95
servers:
91
96
- url: https://bstcache.endlessos.org
92
- push: true
97
+ push: ${PUSH_ARTIFACTS}
93
98
auth:
99
client-cert: $(pwd)/client.crt
100
client-key: $(pwd)/client.key
0 commit comments