Change job order: make repo depend on release
Repo updates require the release to be available.
This commit is contained in:
parent
468947a822
commit
d1ab15432b
40
.github/workflows/arch.yml
vendored
40
.github/workflows/arch.yml
vendored
|
@ -72,9 +72,28 @@ jobs:
|
||||||
name: arch-latest
|
name: arch-latest
|
||||||
path: release
|
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:
|
repo:
|
||||||
name: Update package repository
|
name: Update package repository
|
||||||
needs: [build]
|
needs: [release]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: archlinux
|
container: archlinux
|
||||||
steps:
|
steps:
|
||||||
|
@ -121,22 +140,3 @@ jobs:
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Update Arch Linux kernel"
|
git commit -m "Update Arch Linux kernel"
|
||||||
git push --set-upstream origin "${update_branch}"
|
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
|
|
||||||
|
|
40
.github/workflows/arch_lts.yml
vendored
40
.github/workflows/arch_lts.yml
vendored
|
@ -72,9 +72,28 @@ jobs:
|
||||||
name: arch-latest
|
name: arch-latest
|
||||||
path: release
|
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:
|
repo:
|
||||||
name: Update package repository
|
name: Update package repository
|
||||||
needs: [build]
|
needs: [release]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: archlinux
|
container: archlinux
|
||||||
steps:
|
steps:
|
||||||
|
@ -121,22 +140,3 @@ jobs:
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Update Arch Linux LTS kernel"
|
git commit -m "Update Arch Linux LTS kernel"
|
||||||
git push --set-upstream origin "${update_branch}"
|
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
|
|
||||||
|
|
40
.github/workflows/debian.yml
vendored
40
.github/workflows/debian.yml
vendored
|
@ -115,9 +115,28 @@ jobs:
|
||||||
name: debian-latest
|
name: debian-latest
|
||||||
path: release
|
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:
|
repo:
|
||||||
name: Update package repository
|
name: Update package repository
|
||||||
needs: [build]
|
needs: [release]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: debian:sid
|
container: debian:sid
|
||||||
steps:
|
steps:
|
||||||
|
@ -165,22 +184,3 @@ jobs:
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Update Debian kernel"
|
git commit -m "Update Debian kernel"
|
||||||
git push --set-upstream origin "${update_branch}"
|
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
|
|
||||||
|
|
40
.github/workflows/debian_lts.yml
vendored
40
.github/workflows/debian_lts.yml
vendored
|
@ -115,9 +115,28 @@ jobs:
|
||||||
name: debian-latest
|
name: debian-latest
|
||||||
path: release
|
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:
|
repo:
|
||||||
name: Update package repository
|
name: Update package repository
|
||||||
needs: [build]
|
needs: [release]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: debian:sid
|
container: debian:sid
|
||||||
steps:
|
steps:
|
||||||
|
@ -165,22 +184,3 @@ jobs:
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Update Debian LTS kernel"
|
git commit -m "Update Debian LTS kernel"
|
||||||
git push --set-upstream origin "${update_branch}"
|
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
|
|
||||||
|
|
40
.github/workflows/fedora-30.yml
vendored
40
.github/workflows/fedora-30.yml
vendored
|
@ -58,9 +58,28 @@ jobs:
|
||||||
name: fedora-30-latest
|
name: fedora-30-latest
|
||||||
path: pkg/fedora/kernel-surface/out/x86_64
|
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:
|
repo:
|
||||||
name: Update package repository
|
name: Update package repository
|
||||||
needs: [build]
|
needs: [release]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: fedora:30
|
container: fedora:30
|
||||||
steps:
|
steps:
|
||||||
|
@ -107,22 +126,3 @@ jobs:
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Update Fedora 30 kernel"
|
git commit -m "Update Fedora 30 kernel"
|
||||||
git push --set-upstream origin "${update_branch}"
|
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
|
|
||||||
|
|
40
.github/workflows/fedora-31.yml
vendored
40
.github/workflows/fedora-31.yml
vendored
|
@ -58,9 +58,28 @@ jobs:
|
||||||
name: fedora-31-latest
|
name: fedora-31-latest
|
||||||
path: pkg/fedora/kernel-surface/out/x86_64
|
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:
|
repo:
|
||||||
name: Update package repository
|
name: Update package repository
|
||||||
needs: [build]
|
needs: [release]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: fedora:31
|
container: fedora:31
|
||||||
steps:
|
steps:
|
||||||
|
@ -107,22 +126,3 @@ jobs:
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Update Fedora 31 kernel"
|
git commit -m "Update Fedora 31 kernel"
|
||||||
git push --set-upstream origin "${update_branch}"
|
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
|
|
||||||
|
|
Loading…
Reference in a new issue