diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc07494..3d8c97e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -186,3 +186,26 @@ jobs: with: name: test-logs-tar path: test-logs.tar.bz2 + + deploy: + runs-on: ubuntu-22.04 + if: startsWith(github.ref, 'refs/tags/') + needs: ["build-kernel", "build-rootfs", "test"] + steps: + + - name: Download kernel bzImage + uses: actions/download-artifact@v3 + with: + name: kernel-bzImage + + - name: Download buildroot rootfs.cpio.gz + uses: actions/download-artifact@v3 + with: + name: rootfs-compressed-cpio + + - name: Deploy + uses: softprops/action-gh-release@v1 + with: + files: | + bzImage + rootfs.cpio.gz diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index f356371..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Release - -on: - workflow_run: - workflows: [CI] - types: [completed] - branches: [main] - -jobs: - deploy: - if: ${{ github.event.workflow_run.conclusion == 'success' }} && startsWith(github.ref, 'refs/tags/') - runs-on: ubuntu-22.04 - steps: - - name: Download the kernel artifact - uses: dawidd6/action-download-artifact@v2 - with: - workflow: CI - name: kernel-bzImage - path: bzImage - - name: Download the buildroot artifact - uses: dawidd6/action-download-artifact@v2 - with: - workflow: CI - name: rootfs-compressed-cpio - path: rootfs.cpio.gz - - name: Deploy - uses: softprops/action-gh-release@v1 - with: - files: | - bzImage - rootfs.cpio.gz