Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
Build and release .deb package
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fasano committed Dec 16, 2023
1 parent 770b28f commit 9b77e6e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@ jobs:

- name: Build
run: |
docker run --rm -v $PWD:/app -w /app ubuntu:22.04 /app/build.sh
tar -czvf genext2fs.tar.gz genext2fs
docker run --rm -v $PWD:/app/src -w /app/src ubuntu:22.04 bash -c " \
sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list; \
apt-get update && apt-get install -y devscripts build-essential lintian debhelper wget && \
apt-get build-dep -y genext2fs && \
wget http://deb.debian.org/debian/pool/main/g/genext2fs/genext2fs_1.5.0.orig.tar.gz && \
mv genext2fs_1.5.0.orig.tar.gz ../ && \
debuild -S -us -uc; \
debuild -us -uc; \
mv ../genext2fs_*.deb ./genext2fs.deb; \
"
- name: Save package
uses: actions/upload-artifact@v3
Expand All @@ -46,8 +54,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./genext2fs.tar.gz
asset_name: genext2fs.tar.gz
asset_path: ./genext2fs.deb
asset_name: genext2fs.deb
asset_content_type: application/gzip

- name: Publish release
Expand Down
18 changes: 0 additions & 18 deletions build.sh

This file was deleted.

1 change: 1 addition & 0 deletions debian/source/options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extend-diff-ignore = "^\.github/"

0 comments on commit 9b77e6e

Please sign in to comment.