mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-11 12:40:16 +00:00
61 lines
2 KiB
YAML
61 lines
2 KiB
YAML
|
# SPDX-License-Identifier: MIT
|
||
|
#
|
||
|
# See also https://forgejo.org/docs/next/developer/RELEASE/#release-process
|
||
|
#
|
||
|
# https://codeberg.org/forgejo-experimental/forgejo
|
||
|
#
|
||
|
# Copies a release from codeberg.org/forgejo-integration to codeberg.org/forgejo-experimental
|
||
|
#
|
||
|
# ROLE: forgejo-experimental
|
||
|
# FORGEJO: https://codeberg.org
|
||
|
# FROM_OWNER: forgejo-integration
|
||
|
# TO_OWNER: forgejo-experimental
|
||
|
# DOER: forgejo-experimental-ci
|
||
|
# TOKEN: <generated from codeberg.org/forgejo-experimental-ci>
|
||
|
#
|
||
|
# https://forgejo.octopuce.forgejo.org/forgejo/forgejo
|
||
|
#
|
||
|
# Copies & sign a release from codeberg.org/forgejo-integration to codeberg.org/forgejo
|
||
|
#
|
||
|
# ROLE: forgejo-release
|
||
|
# FORGEJO: https://codeberg.org
|
||
|
# FROM_OWNER: forgejo-integration
|
||
|
# TO_OWNER: forgejo
|
||
|
# DOER: release-team
|
||
|
# TOKEN: <generated from codeberg.org/release-team>
|
||
|
# GPG_PRIVATE_KEY: <XYZ>
|
||
|
# GPG_PASSPHRASE: <ABC>
|
||
|
#
|
||
|
name: Pubish release
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
tags: 'v*'
|
||
|
|
||
|
jobs:
|
||
|
publish:
|
||
|
runs-on: self-hosted
|
||
|
if: secrets.DOER != '' && secrets.FORGEJO != '' && secrets.TO_OWNER != '' && secrets.FROM_OWNER != '' && secrets.TOKEN != ''
|
||
|
steps:
|
||
|
- name: install the certificate authority
|
||
|
if: secrets.ROLE == 'forgejo-release'
|
||
|
run: |
|
||
|
apt-get install -qq -y wget
|
||
|
wget --no-check-certificate -O /usr/local/share/ca-certificates/enough.crt https://forgejo.octopuce.forgejo.org/forgejo/enough/raw/branch/main/certs/2023-05-13/ca.crt
|
||
|
update-ca-certificates --fresh
|
||
|
|
||
|
- uses: actions/checkout@v3
|
||
|
|
||
|
- name: copy & sign binaries and container images from one owner to another
|
||
|
uses: ./.forgejo/actions/publish-release
|
||
|
with:
|
||
|
forgejo: ${{ secrets.FORGEJO }}
|
||
|
from-owner: ${{ secrets.FROM_OWNER }}
|
||
|
to-owner: ${{ secrets.TO_OWNER }}
|
||
|
ref-name: ${{ github.ref_name }}
|
||
|
doer: ${{ secrets.DOER }}
|
||
|
token: ${{ secrets.TOKEN }}
|
||
|
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||
|
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
||
|
verbose: ${{ secrets.VERBOSE }}
|