Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Testing packaging with GitHub Actions

Cyril Rohr8248338f3107
diff --git a/.github/workflows/packager.yml b/.github/workflows/packager.yml
new file mode 100644
index 00000000000..d5e19a240ca
--- /dev/null
+++ b/.github/workflows/packager.yml
@@ -0,0 +1,49 @@
+name: Package
+on:
+ push:
+ branches:
+ - feature/package-via-github-actions
+ - dev
+ - release/*
+ - stable/*
+ workflow_dispatch:
+
+jobs:
+ build:
+ name: ${{ matrix.target }}
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ target:
+ # - debian:10
+ # - debian:11
+ - debian:12
+ # - ubuntu:20.04
+ # - ubuntu:22.04
+ # - ubuntu:24.04
+ # - el:7
+ # - el:8
+ # - el:9
+ # - sles:12
+ # - sles:15
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Setup
+ id: setup
+ run: |
+ VERSION=$(ruby -r ./lib/open_project/version.rb -e "puts OpenProject::VERSION")
+ echo "version=$VERSION" >> $GITHUB_ENV
+ - name: Package
+ uses: pkgr/action/package@v1
+ id: package
+ with:
+ target: ${{ matrix.target }}
+ version: ${{ steps.setup.outputs.version }}
+ # - name: Upload
+ # uses: actions/upload-artifact@v4
+ # with:
+ # name: ${{ steps.package.outputs.package_name }}
+ # path: ${{ steps.package.outputs.package_path }}
\ No newline at end of file