ci: Added package workflow upload #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: create package structure | |
run: | | |
mkdir -p .debpkg/usr/bin .rpmpkg/usr/bin | |
cp -p screen-* .debpkg/usr/bin/ | |
cp -p screen-* .rpmpkg/usr/bin/ | |
- uses: jiro4989/build-deb-action@v3 | |
with: | |
package: screen-save | |
package_root: .debpkg | |
maintainer: Simon Walz <contact@simonwalz.de> | |
version: ${{ github.ref }} # refs/tags/v*.*.* | |
arch: 'all' | |
depends: 'screen' | |
desc: 'A tool to make screen sessions persistent = survive system reboots.' | |
homepage: 'https://github.com/simonwalz/screen-save' | |
- uses: jiro4989/build-rpm-action@v2 | |
with: | |
summary: 'A tool to make screen sessions persistent = survive system reboots.' | |
package: screen-save | |
package_root: .rpmpkg | |
maintainer: Simon Walz <contact@simonwalz.de> | |
version: ${{ github.ref }} # refs/tags/v*.*.* | |
arch: 'x86_64' | |
desc: 'A tool to make screen sessions persistent = survive system reboots.' | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: artifact-deb | |
path: | | |
./*.deb | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: artifact-rpm | |
path: | | |
./*.rpm | |
!./*-debuginfo-*.rpm |