-
-
Notifications
You must be signed in to change notification settings - Fork 118
44 lines (37 loc) · 1.16 KB
/
uefi-only-deploy.yaml
File metadata and controls
44 lines (37 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: uefi-only-deploy
on:
workflow_dispatch:
env:
UEFI_ONLY_VERSION: uefi-only-${{ vars.UEFI_DATE }}-${{ vars.UEFI_LINUX_TAG }}
jobs:
build:
uses: ./.github/workflows/uefi-only-build.yaml
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v5
with:
name: uefi-only-boot.bin
- name: Deploy to Bunny
env:
PKG_URL: https://storage.bunnycdn.com/asahilinux/os
PKG_VER: ${{ env.UEFI_ONLY_VERSION }}.zip
ACCESS_KEY: ${{ secrets.BUNNY_TOKEN }}
run: |
if [ ! -e "${PKG_VER}" ]; then
echo "Package not found!"
ls -R
exit 1
fi
upload() {
curl -# --fail --request PUT \
--url "${2}" \
--variable %ACCESS_KEY \
--expand-header 'AccessKey: {{ACCESS_KEY}}' \
-H "Content-Type: ${3}" \
-H "Accept: application/json" \
--data-binary @${1}
}
upload "${PKG_VER}" "${PKG_URL}/${PKG_VER}" "application/octet-stream"