This commit is contained in:
parent
dbfda08dc3
commit
46bad33618
37
.forgejo/workflows/packaging_test.yml
Normal file
37
.forgejo/workflows/packaging_test.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
name: Packaging Test
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- $default-branch
|
||||||
|
- development
|
||||||
|
- master
|
||||||
|
# Run tests for any PRs
|
||||||
|
pull_request:
|
||||||
|
env:
|
||||||
|
SOURCE_DIR: ./
|
||||||
|
ARTIFACTS_DIR: debian/build/release/
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: https://github.com/actions/checkout@v4
|
||||||
|
env:
|
||||||
|
DEBIAN_FRONTEND: "noninteractive"
|
||||||
|
- name: Remove github artefacts
|
||||||
|
run: |
|
||||||
|
rm -rf .github* .forgejo*
|
||||||
|
- name: Adjust distibution in changelog file
|
||||||
|
run: |
|
||||||
|
sed -i '0,/restricted/s//stable/' debian/changelog
|
||||||
|
- name: Show first lines of changelog
|
||||||
|
run: |
|
||||||
|
which skopeo
|
||||||
|
head -15 debian/changelog
|
||||||
|
- name: Build Debian package
|
||||||
|
uses: https://github.com/dawidd6/action-debian-package@v1.5.0
|
||||||
|
with:
|
||||||
|
artifacts_directory: debian/build/release/
|
||||||
|
- name: Debug
|
||||||
|
run: |
|
||||||
|
ls -la
|
Loading…
Reference in a new issue