Skip to content

Commit

Permalink
Build debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Feb 21, 2024
1 parent 4e4851f commit 9f6923d
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: checkout
uses: actions/checkout@v4

- uses: actions/setup-node@v3
- name: setup node
- uses: actions/setup-node@v4
with:
node-version: 20

Expand All @@ -29,7 +31,24 @@ jobs:
run: npm run build

- name: archive artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: develop_snapshot
path: build

- name: create changelog
run: |
$GITHUB_WORKSPACE/debian/changelog_md2deb.py $GITHUB_WORKSPACE/changelog.md > $GITHUB_WORKSPACE/debian/changelog
cat $GITHUB_WORKSPACE/debian/changelog
- name: Create deb package
env:
GENERATE_SOURCEMAP: "false"
run: |
fakeroot make -f debian/rules clean
fakeroot make -f debian/rules binary
- name: archive deb artifacts
uses: actions/upload-artifact@v4
with:
name: snapweb
path: ${{env.PARENT_DIR}}/snapweb_*.deb

0 comments on commit 9f6923d

Please sign in to comment.