mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
[ci] build debian package
This commit is contained in:
parent
d6af8a1598
commit
165080b476
15
.github/workflows/pre-release.yml
vendored
15
.github/workflows/pre-release.yml
vendored
@ -11,8 +11,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
env:
|
env:
|
||||||
CHANGELOG_AUTHOR_NAME: "Kevin Yue"
|
DEBFULLNAME: "Kevin Yue"
|
||||||
CHANGELOG_AUTHOR_EMAIL: "yuezk001@gmail.com"
|
DEBEMAIL: "yuezk001@gmail.com"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Checkout repository and submodules
|
# Checkout repository and submodules
|
||||||
@ -31,6 +31,7 @@ jobs:
|
|||||||
- name: Update debian/changelog
|
- name: Update debian/changelog
|
||||||
run: |
|
run: |
|
||||||
sudo apt install devscripts
|
sudo apt install devscripts
|
||||||
|
git log --format="%s" v${{ steps.vars.outputs.TAG }}..
|
||||||
git log --format="%s" v${{ steps.vars.outputs.TAG }}.. | xargs -L1 dch -v ${{ steps.vars.outputs.VERSION }}-1ppa1
|
git log --format="%s" v${{ steps.vars.outputs.TAG }}.. | xargs -L1 dch -v ${{ steps.vars.outputs.VERSION }}-1ppa1
|
||||||
|
|
||||||
- name: "Archive all"
|
- name: "Archive all"
|
||||||
@ -42,6 +43,15 @@ jobs:
|
|||||||
--prefix=globalprotect-openconnect-${{ steps.vars.outputs.VERSION }}/ \
|
--prefix=globalprotect-openconnect-${{ steps.vars.outputs.VERSION }}/ \
|
||||||
./globalprotect-openconnect_${{ steps.vars.outputs.VERSION }}.orig.tar.gz
|
./globalprotect-openconnect_${{ steps.vars.outputs.VERSION }}.orig.tar.gz
|
||||||
|
|
||||||
|
- name: "Packaging"
|
||||||
|
run: |
|
||||||
|
sudo apt install qtbase5-dev libqt5websockets5-dev qtwebengine5-dev qttools5-dev debhelper
|
||||||
|
mkdir build-debian && cd build-debian
|
||||||
|
cp ../*.tar.gz .
|
||||||
|
tar xf *.tar.gz
|
||||||
|
cd globalprotect-openconnect-${{ steps.vars.outputs.VERSION }}
|
||||||
|
fakeroot dpkg-buildpackage -uc -us -sa 2>&1 | tee ../build.log
|
||||||
|
|
||||||
- uses: "marvinpinto/action-automatic-releases@latest"
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
@ -50,3 +60,4 @@ jobs:
|
|||||||
title: "Development Build"
|
title: "Development Build"
|
||||||
files: |
|
files: |
|
||||||
*.tar.gz
|
*.tar.gz
|
||||||
|
build-debian/*.deb
|
Loading…
Reference in New Issue
Block a user