2023-08-25 12:25:36 +00:00
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
#
|
|
|
|
# https://forgejo.octopuce.forgejo.org/forgejo-release/runner
|
|
|
|
#
|
|
|
|
# Copies & sign a release from code.forgejo.org/forgejo-integration/runner to code.forgejo.org/forgejo/runner
|
|
|
|
#
|
|
|
|
# ROLE: forgejo-release
|
|
|
|
# FORGEJO: https://code.forgejo.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>
|
|
|
|
#
|
2024-08-27 09:40:36 +00:00
|
|
|
name: publish
|
2023-08-25 12:25:36 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-11-12 09:48:52 +00:00
|
|
|
tags:
|
|
|
|
- 'v*'
|
2023-08-25 12:25:36 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
2024-12-09 14:31:33 +00:00
|
|
|
runs-on: lxc-bookworm
|
2023-08-25 12:25:36 +00:00
|
|
|
if: secrets.DOER != '' && secrets.FORGEJO != '' && secrets.TO_OWNER != '' && secrets.FROM_OWNER != '' && secrets.TOKEN != ''
|
|
|
|
steps:
|
2024-11-12 09:35:59 +00:00
|
|
|
- uses: actions/checkout@v4
|
2023-08-25 12:25:36 +00:00
|
|
|
|
|
|
|
- name: copy & sign
|
2024-11-12 15:31:31 +00:00
|
|
|
uses: https://code.forgejo.org/forgejo/forgejo-build-publish/publish@v5
|
2023-08-25 12:25:36 +00:00
|
|
|
with:
|
2024-11-16 11:30:03 +00:00
|
|
|
from-forgejo: ${{ secrets.FORGEJO }}
|
|
|
|
to-forgejo: ${{ secrets.FORGEJO }}
|
2023-08-25 12:25:36 +00:00
|
|
|
from-owner: ${{ secrets.FROM_OWNER }}
|
|
|
|
to-owner: ${{ secrets.TO_OWNER }}
|
2023-08-25 14:14:08 +00:00
|
|
|
repo: "runner"
|
2023-08-25 12:25:36 +00:00
|
|
|
ref-name: ${{ github.ref_name }}
|
2024-11-16 11:30:03 +00:00
|
|
|
sha: ${{ github.sha }}
|
2023-08-25 14:34:19 +00:00
|
|
|
container-suffixes: " "
|
2024-11-16 11:30:03 +00:00
|
|
|
from-token: ${{ secrets.TOKEN }}
|
|
|
|
to-doer: ${{ secrets.DOER }}
|
|
|
|
to-token: ${{ secrets.TOKEN }}
|
2023-08-25 12:25:36 +00:00
|
|
|
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
|
|
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
|
|
|
verbose: ${{ secrets.VERBOSE }}
|