Skip to content

Commit 29dec4a

Browse files
committed
workflows: release-dev: add dev release workflow
Builds on every push to main and uploads the artefact to the CDN for use as the latest dev installer Signed-off-by: James Calligeros <[email protected]>
1 parent 2b86134 commit 29dec4a

2 files changed

Lines changed: 18 additions & 7 deletions

File tree

.github/workflows/release-dev.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: release-dev
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
release-dev:
10+
uses: ./.github/workflows/release.yaml
11+
with:
12+
upload-type: installer-dev

.github/workflows/release.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ jobs:
1616
upload-artefact:
1717
needs: build
1818
runs-on: ubuntu-latest
19-
env:
20-
PKG_URL: "https://storage.bunnycdn.com/asahilinux/${{ inputs.upload-type }}"
21-
PKG_VER: "installer-${{ jobs.build.outputs.version }}"
22-
RELEASE_PKG: "releases/${{ env.PKG_VER }}"
2319
steps:
2420
- name: Download artefact
2521
uses: actions/download-artifact@v4
@@ -28,8 +24,11 @@ jobs:
2824
path: releases/.
2925

3026
- name: Push to Bunny
27+
env:
28+
PKG_URL: "https://storage.bunnycdn.com/asahilinux/${{ inputs.upload-type }}"
29+
PKG_VER: "installer-${{ needs.build.outputs.installer_ver }}"
3130
run: |
32-
if [ ! -e "${RELEASE_PKG}" ]; then
31+
if [ ! -e "releases/${PKG_VER}" ]; then
3332
echo "Package not found!"
3433
exit 1
3534
fi
@@ -43,5 +42,5 @@ jobs:
4342
--data-binary @${1}
4443
}
4544
46-
upload "${{ env.RELEASE_PKG }}" "${{ env.PKG_URL }}/${{ env.PKG_VER }}" "application/octet-stream"
47-
upload "releases/latest" "${{ env.PKG_URL }}/latest" "text/plain"
45+
upload "releases/${PKG_VER}" "${PKG_URL}/${PKG_VER}" "application/octet-stream"
46+
upload "releases/latest" "${PKG_URL}/latest" "text/plain"

0 commit comments

Comments
 (0)