diff --git a/.github/workflows/arch.yml b/.github/workflows/arch.yml index fb0e4bc2c..4282d7156 100644 --- a/.github/workflows/arch.yml +++ b/.github/workflows/arch.yml @@ -72,9 +72,28 @@ jobs: name: arch-latest path: release + release: + name: Publish release + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v1 + with: + name: arch-latest + + - name: Upload assets + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_BOT_TOKEN }} + file: ./*-latest/* + tag: ${{ github.ref }} + overwrite: true + file_glob: true + repo: name: Update package repository - needs: [build] + needs: [release] runs-on: ubuntu-latest container: archlinux steps: @@ -121,22 +140,3 @@ jobs: git add . git commit -m "Update Arch Linux kernel" git push --set-upstream origin "${update_branch}" - - release: - name: Publish release - needs: [repo] - runs-on: ubuntu-latest - steps: - - name: Download artifacts - uses: actions/download-artifact@v1 - with: - name: arch-latest - - - name: Upload assets - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_BOT_TOKEN }} - file: ./*-latest/* - tag: ${{ github.ref }} - overwrite: true - file_glob: true diff --git a/.github/workflows/arch_lts.yml b/.github/workflows/arch_lts.yml index 2c85229cd..82062cf2c 100644 --- a/.github/workflows/arch_lts.yml +++ b/.github/workflows/arch_lts.yml @@ -72,9 +72,28 @@ jobs: name: arch-latest path: release + release: + name: Publish release + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v1 + with: + name: arch-latest + + - name: Upload assets + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_BOT_TOKEN }} + file: ./*-latest/* + tag: ${{ github.ref }} + overwrite: true + file_glob: true + repo: name: Update package repository - needs: [build] + needs: [release] runs-on: ubuntu-latest container: archlinux steps: @@ -121,22 +140,3 @@ jobs: git add . git commit -m "Update Arch Linux LTS kernel" git push --set-upstream origin "${update_branch}" - - release: - name: Publish release - needs: [repo] - runs-on: ubuntu-latest - steps: - - name: Download artifacts - uses: actions/download-artifact@v1 - with: - name: arch-latest - - - name: Upload assets - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_BOT_TOKEN }} - file: ./*-latest/* - tag: ${{ github.ref }} - overwrite: true - file_glob: true diff --git a/.github/workflows/debian.yml b/.github/workflows/debian.yml index 013f8d337..91cb6d2e0 100644 --- a/.github/workflows/debian.yml +++ b/.github/workflows/debian.yml @@ -115,9 +115,28 @@ jobs: name: debian-latest path: release + release: + name: Publish release + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v1 + with: + name: debian-latest + + - name: Upload assets + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_BOT_TOKEN }} + file: ./*-latest/* + tag: ${{ github.ref }} + overwrite: true + file_glob: true + repo: name: Update package repository - needs: [build] + needs: [release] runs-on: ubuntu-latest container: debian:sid steps: @@ -165,22 +184,3 @@ jobs: git add . git commit -m "Update Debian kernel" git push --set-upstream origin "${update_branch}" - - release: - name: Publish release - needs: [repo] - runs-on: ubuntu-latest - steps: - - name: Download artifacts - uses: actions/download-artifact@v1 - with: - name: debian-latest - - - name: Upload assets - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_BOT_TOKEN }} - file: ./*-latest/* - tag: ${{ github.ref }} - overwrite: true - file_glob: true diff --git a/.github/workflows/debian_lts.yml b/.github/workflows/debian_lts.yml index ad7760c96..d1e115eb6 100644 --- a/.github/workflows/debian_lts.yml +++ b/.github/workflows/debian_lts.yml @@ -115,9 +115,28 @@ jobs: name: debian-latest path: release + release: + name: Publish release + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v1 + with: + name: debian-latest + + - name: Upload assets + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_BOT_TOKEN }} + file: ./*-latest/* + tag: ${{ github.ref }} + overwrite: true + file_glob: true + repo: name: Update package repository - needs: [build] + needs: [release] runs-on: ubuntu-latest container: debian:sid steps: @@ -165,22 +184,3 @@ jobs: git add . git commit -m "Update Debian LTS kernel" git push --set-upstream origin "${update_branch}" - - release: - name: Publish release - needs: [repo] - runs-on: ubuntu-latest - steps: - - name: Download artifacts - uses: actions/download-artifact@v1 - with: - name: debian-latest - - - name: Upload assets - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_BOT_TOKEN }} - file: ./*-latest/* - tag: ${{ github.ref }} - overwrite: true - file_glob: true diff --git a/.github/workflows/fedora-30.yml b/.github/workflows/fedora-30.yml index f7da852b3..7846cb007 100644 --- a/.github/workflows/fedora-30.yml +++ b/.github/workflows/fedora-30.yml @@ -58,9 +58,28 @@ jobs: name: fedora-30-latest path: pkg/fedora/kernel-surface/out/x86_64 + release: + name: Publish release + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v1 + with: + name: fedora-30-latest + + - name: Upload assets + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_BOT_TOKEN }} + file: ./*-latest/* + tag: ${{ github.ref }} + overwrite: true + file_glob: true + repo: name: Update package repository - needs: [build] + needs: [release] runs-on: ubuntu-latest container: fedora:30 steps: @@ -107,22 +126,3 @@ jobs: git add . git commit -m "Update Fedora 30 kernel" git push --set-upstream origin "${update_branch}" - - release: - name: Publish release - needs: [repo] - runs-on: ubuntu-latest - steps: - - name: Download artifacts - uses: actions/download-artifact@v1 - with: - name: fedora-30-latest - - - name: Upload assets - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_BOT_TOKEN }} - file: ./*-latest/* - tag: ${{ github.ref }} - overwrite: true - file_glob: true diff --git a/.github/workflows/fedora-31.yml b/.github/workflows/fedora-31.yml index 6245a28d2..30be02009 100644 --- a/.github/workflows/fedora-31.yml +++ b/.github/workflows/fedora-31.yml @@ -58,9 +58,28 @@ jobs: name: fedora-31-latest path: pkg/fedora/kernel-surface/out/x86_64 + release: + name: Publish release + needs: [build] + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v1 + with: + name: fedora-31-latest + + - name: Upload assets + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_BOT_TOKEN }} + file: ./*-latest/* + tag: ${{ github.ref }} + overwrite: true + file_glob: true + repo: name: Update package repository - needs: [build] + needs: [release] runs-on: ubuntu-latest container: fedora:31 steps: @@ -107,22 +126,3 @@ jobs: git add . git commit -m "Update Fedora 31 kernel" git push --set-upstream origin "${update_branch}" - - release: - name: Publish release - needs: [repo] - runs-on: ubuntu-latest - steps: - - name: Download artifacts - uses: actions/download-artifact@v1 - with: - name: fedora-31-latest - - - name: Upload assets - uses: svenstaro/upload-release-action@v1-release - with: - repo_token: ${{ secrets.GITHUB_BOT_TOKEN }} - file: ./*-latest/* - tag: ${{ github.ref }} - overwrite: true - file_glob: true