55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
|
---
|
||
|
name: Build and publish forgejo-runner Debian package
|
||
|
on: [create]
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: docker
|
||
|
container:
|
||
|
image: docker.io/brenard/debian-python-deb:latest
|
||
|
steps:
|
||
|
- name: Check out repository code
|
||
|
uses: actions/checkout@v4
|
||
|
- name: Build Debian package
|
||
|
run: |
|
||
|
echo "${{ secrets.GPG_KEY }}"|base64 -d|gpg --import
|
||
|
export MAINTAINER_NAME="${{ secrets.MAINTAINER_NAME }}"
|
||
|
export MAINTAINER_EMAIL="${{ secrets.MAINTAINER_EMAIL }}"
|
||
|
export DEBIAN_CODENAME="${{ secrets.DEBIAN_CODENAME }}"
|
||
|
./build.sh --install-deps
|
||
|
- name: Upload Debian package files
|
||
|
uses: actions/upload-artifact@v4
|
||
|
with:
|
||
|
name: dist
|
||
|
path: |
|
||
|
dist/*.buildinfo
|
||
|
dist/*.changes
|
||
|
dist/*.deb
|
||
|
dist/*.dsc
|
||
|
dist/*.tar.gz
|
||
|
dist/release_notes.md
|
||
|
|
||
|
publish-forgejo:
|
||
|
runs-on: docker
|
||
|
container:
|
||
|
image: docker.io/brenard/debian-python-deb:latest
|
||
|
steps:
|
||
|
- name: Download Debian package files
|
||
|
uses: actions/download-artifact@v4
|
||
|
with:
|
||
|
name: dist
|
||
|
|
||
|
- name: Create the release
|
||
|
id: publish-release-notes
|
||
|
run: |
|
||
|
mkdir dist/release
|
||
|
mv dist/*.deb dist/release/
|
||
|
value<<cat dist/release-notes.md
|
||
|
|
||
|
- name: Create release on Forgejo
|
||
|
uses: actions/forgejo-release@v1
|
||
|
with:
|
||
|
direction: upload
|
||
|
url: https://code.forgejo.org
|
||
|
release-dir: dist/release
|
||
|
release-notes: ${{ steps.publish-release-notes.outputs.value }}
|