File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 - name : Setup up Docker Buildx
3232 uses : docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
3333
34-
3534 - name : Make builder container image
3635 uses : docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
3736 with :
@@ -183,13 +182,37 @@ jobs:
183182 permissions :
184183 pages : write
185184 id-token : write
185+ contents : write
186186 steps :
187+ - name : Checkout git persisted cdn/apt/ artifacts
188+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
189+ with :
190+ ref : cdn
191+ path : cdn
192+ lfs : true
193+ sparse-checkout : |
194+ apt
195+
187196 - name : Download signed archives
188197 uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
189198 with :
190199 name : signed-artifacts-apt
191200 path : _site/
192201
202+ - name : Sync cdn/apt and _site/apt
203+ run : |
204+ cp -vrn cdn/apt/* _site/apt/
205+ cp -vr _site/apt/* cdn/apt/
206+
207+ - name : Persist packages into git cdn
208+ run : |
209+ cd cdn/apt/
210+ git config user.name "github-actions[bot]"
211+ git config user.email "github-actions[bot]@users.noreply.github.com"
212+ git add --sparse keys/ stable/
213+ git diff --staged --quiet || git commit -m "Update cdn/apt ${{ github.ref_name }}"
214+ git push origin cdn
215+
193216 - name : Create GPG Public Key from variable
194217 env :
195218 DEB_PUB_KEY : ${{ vars.DEB_PUB_KEY }}
You can’t perform that action at this time.
0 commit comments