ci: fix copr for release events (#4056)
This commit is contained in:
parent
c0823c7444
commit
d28e221bb7
2 changed files with 28 additions and 2 deletions
28
.github/workflows/ci-copr.yml
vendored
28
.github/workflows/ci-copr.yml
vendored
|
|
@ -34,3 +34,31 @@ jobs:
|
||||||
COPR_BETA_WEBHOOK_TOKEN: ${{ secrets.COPR_BETA_WEBHOOK_TOKEN }}
|
COPR_BETA_WEBHOOK_TOKEN: ${{ secrets.COPR_BETA_WEBHOOK_TOKEN }}
|
||||||
COPR_STABLE_WEBHOOK_TOKEN: ${{ secrets.COPR_STABLE_WEBHOOK_TOKEN }}
|
COPR_STABLE_WEBHOOK_TOKEN: ${{ secrets.COPR_STABLE_WEBHOOK_TOKEN }}
|
||||||
COPR_CLI_CONFIG: ${{ secrets.COPR_CLI_CONFIG }}
|
COPR_CLI_CONFIG: ${{ secrets.COPR_CLI_CONFIG }}
|
||||||
|
|
||||||
|
release:
|
||||||
|
name: Release
|
||||||
|
if:
|
||||||
|
github.event_name == 'release' &&
|
||||||
|
startsWith(github.repository, 'LizardByte/')
|
||||||
|
needs:
|
||||||
|
- call-copr-ci
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Download build artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
path: artifacts
|
||||||
|
pattern: build-*
|
||||||
|
merge-multiple: true
|
||||||
|
|
||||||
|
- name: Debug artifacts
|
||||||
|
run: ls -l artifacts
|
||||||
|
|
||||||
|
- name: Update GitHub Release
|
||||||
|
uses: LizardByte/actions/actions/release_create@v2025.703.21447
|
||||||
|
with:
|
||||||
|
allowUpdates: true
|
||||||
|
name: ${{ github.event.release.name }}
|
||||||
|
prerelease: true
|
||||||
|
tag: ${{ github.event.release.tag_name }}
|
||||||
|
token: ${{ secrets.GH_BOT_TOKEN }}
|
||||||
|
|
|
||||||
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -92,7 +92,6 @@ jobs:
|
||||||
|
|
||||||
build-linux-copr:
|
build-linux-copr:
|
||||||
name: Linux Copr
|
name: Linux Copr
|
||||||
if: github.event_name != 'push' # releases are handled directly in ci-copr.yml
|
|
||||||
needs: release-setup
|
needs: release-setup
|
||||||
uses: ./.github/workflows/ci-copr.yml
|
uses: ./.github/workflows/ci-copr.yml
|
||||||
secrets:
|
secrets:
|
||||||
|
|
@ -186,7 +185,6 @@ jobs:
|
||||||
- release-setup
|
- release-setup
|
||||||
- build-docker
|
- build-docker
|
||||||
- build-linux
|
- build-linux
|
||||||
- build-linux-copr
|
|
||||||
- build-linux-flatpak
|
- build-linux-flatpak
|
||||||
- build-homebrew
|
- build-homebrew
|
||||||
- build-windows
|
- build-windows
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue