Skip to content

Build debian package #165

Build debian package

Build debian package #165

Workflow file for this run

name: Ubuntu
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup node
- uses: actions/setup-node@v4
with:
node-version: 20
- name: update npm
run: npm install -g npm@latest
- name: clean cache
run: npm cache clean --force
- name: install
run: npm ci
- name: build
env:
GENERATE_SOURCEMAP: "false"
run: npm run build
- name: archive artifacts
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