Skip to content

Commit

Permalink
Add automatic packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
tssge committed Jul 19, 2024
1 parent 4933b8c commit 555aa17
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 3 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release
on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup config
run: |
git config --global user.name "Net9 Oy"
git config --global user.email "admin@net9.fi"
- name: Install deps
run: |
sudo apt-get install -y git-buildpackage debhelper
- name: Generate changelog
run: |
DEBEMAIL=admin@net9.fi gbp dch --release --full --id-length=7 --spawn-editor=never --git-author --dch-opt='-U' --distribution experimental
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update changelog"
commit_options: "--no-verify --signoff"
- name: Tag release
run: |
gbp tag
git push --tags
echo "TAG=$(git describe --tags)" >> $GITHUB_ENV
- name: Build release
run: |
make deb
echo "DEB_PATH=$(ls ../*.deb)" >> $GITHUB_ENV
- name: Upload release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.DEB_PATH }}
tag: ${{ env.TAG }}
overwrite: true
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ all:

deb:
dh_clean
debuild -us -uc -i -b
debuild --no-lintian -i -us -uc -b

install:
install -D -m 0644 ./DRBDPlugin.pm.divert ${DESTDIR}$(PERLDIR)/PVE/Storage/DRBDPlugin.pm
Expand Down
1 change: 0 additions & 1 deletion debian/compat

This file was deleted.

2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Maintainer: Net9 Oy <admin@net9.fi>
Uploaders: Teemu Grönqvist <teemu.gronqvist@net9.fi>
Section: perl
Priority: optional
Build-Depends: debhelper (>= 9)
Build-Depends: debhelper-compat (= 13)
Standards-Version: 3.9.6

Package: proxmox-3par
Expand Down

0 comments on commit 555aa17

Please sign in to comment.