Automate the release process
This commit is contained in:
parent
6b7d8134f0
commit
3232b641f6
3 changed files with 47 additions and 32 deletions
34
.github/workflows/release.yml
vendored
Normal file
34
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Create a GitHub upstream release. Replace "TARNAME" with your project tarball
|
||||
# name and enable this by dropping the ".disabled" suffix from the file name.
|
||||
# See README.md.
|
||||
name: release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
# this is a glob, not a regexp
|
||||
- '[0-9]*'
|
||||
jobs:
|
||||
source:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/cockpit-project/unit-tests
|
||||
options: --user root
|
||||
permissions:
|
||||
# create GitHub release
|
||||
contents: write
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Workaround for https://github.com/actions/checkout/pull/697
|
||||
run: git fetch --force origin $(git describe --tags):refs/tags/$(git describe --tags)
|
||||
|
||||
- name: Build release
|
||||
run: make dist
|
||||
|
||||
- name: Publish GitHub release
|
||||
uses: cockpit-project/action-release@88d994da62d1451c7073e26748c18413fcdf46e9
|
||||
with:
|
||||
filename: "TARNAME-${{ github.ref_name }}.tar.xz"
|
||||
19
.github/workflows/template-sync.yml
vendored
19
.github/workflows/template-sync.yml
vendored
|
|
@ -1,19 +0,0 @@
|
|||
# File: .github/workflows/template-sync.yml
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 1 * *"
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
repo-sync:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: actions-template-sync
|
||||
uses: AndreasAugustin/actions-template-sync@v0.8.0
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
source_repo_path: cockpit-project/starter-kit
|
||||
upstream_branch: main
|
||||
26
packit.yaml
26
packit.yaml
|
|
@ -53,18 +53,18 @@ jobs:
|
|||
# - centos-stream-9-x86_64
|
||||
|
||||
# Build releases in Fedora: https://packit.dev/docs/configuration/#propose_downstream
|
||||
#- job: propose_downstream
|
||||
# trigger: release
|
||||
# dist_git_branches:
|
||||
# - fedora-all
|
||||
- job: propose_downstream
|
||||
trigger: release
|
||||
dist_git_branches:
|
||||
- fedora-all
|
||||
|
||||
#- job: koji_build
|
||||
# trigger: commit
|
||||
# dist_git_branches:
|
||||
# - fedora-all
|
||||
- job: koji_build
|
||||
trigger: commit
|
||||
dist_git_branches:
|
||||
- fedora-all
|
||||
|
||||
#- job: bodhi_update
|
||||
# trigger: commit
|
||||
# dist_git_branches:
|
||||
# # rawhide updates are created automatically
|
||||
# - fedora-branched
|
||||
- job: bodhi_update
|
||||
trigger: commit
|
||||
dist_git_branches:
|
||||
# rawhide updates are created automatically
|
||||
- fedora-branched
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue