Skip to content

Commit

Permalink
add Deb-Packaging workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JM-Lemmi committed Nov 16, 2023
1 parent f562e5f commit cde4cf6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Package

# Run workflow on tags starting with v (eg. v2, v1.2.0)
on:
push:
tags:
- v*

jobs:
Package:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Create debpkg structure
run: |
mkdir -p .debpkg/usr/bin/
cp aptrepo .debpkg/usr/bin
- uses: jiro4989/build-deb-action@v2
id: package
with:
package: apt-repo
package_root: ./.debpkg
maintainer: Julian Lemmerich <[email protected]>
version: ${{ github.ref }} # refs/tags/v*.*.*
arch: 'amd64'
depends: 'gpg, dpkg-dev'
desc: 'Create the structure for an apt repository to be hosted by nginx.'
- uses: actions/upload-artifact@v3
with:
name: ${{steps.package.outputs.file_name}}
path: ${{steps.package.outputs.file_name}}
0 aptrepo.sh → aptrepo
100755 → 100644
File renamed without changes.

0 comments on commit cde4cf6

Please sign in to comment.