Skip to content

Commit

Permalink
Add CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeya committed Jul 1, 2024
1 parent 2505c2a commit a3ae551
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build and Release Debian Package

on:
push:
tags:
- "v*"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: Build Debian Package
uses: jtdor/build-deb-action@v1
env:
DEB_BUILD_OPTIONS: noautodbgsym
with:
docker-image: ubuntu:24.04
buildpackage-opts: --build=binary --no-sign
# When change deb package name as git rev id
# before-build-hook: debchange --controlmaint --local="+ci${{ github.run_id }}~git$(git rev-parse --short HEAD)" "CI build"
before-build-hook: apt-get install -y devscripts equivs && mk-build-deps --install --remove debian/control
extra-build-deps: devscripts git equivs debhelper build-essential
host-arch: amd64
artifacts-dir: debian/artifacts

- name: Upload Debian Package
uses: actions/upload-artifact@v2
with:
name: debian-package
path: debian/artifacts/*.deb

release:
needs: build
runs-on: ubuntu-latest

steps:

- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: debian-package
path: .

- run: ls -R .

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: ./*.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
hamonikr-onboard-layout-ko (1.3.2) stable; urgency=medium

* Released for paektu
- No change

-- HamoniKR <[email protected]> Mon, 01 Jul 2024 11:32:31 +0900

hamonikr-onboard-layout-ko (1.3.1) stable; urgency=medium

* Fixed maintainer script
Expand Down

0 comments on commit a3ae551

Please sign in to comment.