Change job order: make repo depend on release

Repo updates require the release to be available.
This commit is contained in:
Maximilian Luz 2020-02-18 18:57:02 +01:00
parent 468947a822
commit d1ab15432b
No known key found for this signature in database
GPG key ID: 70EC0937F6C26F02
6 changed files with 120 additions and 120 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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