bump to 3.0.0.dev11 #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OAR3 - generates debian packages | |
on: | |
push: | |
branches: | |
- "release-ci" | |
tags: | |
- 3.* | |
jobs: | |
Run-Test: | |
uses: ./.github/workflows/run-tests.yml | |
secrets: | |
DOCKERTOKEN: ${{ secrets.DOCKERTOKEN }} | |
DOCKERUSER: ${{ secrets.DOCKERUSER }} | |
Generate-debian-packages: | |
needs: Run-Test | |
env: | |
OUTPUT: debian-packages | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
debian: | |
- { BRANCH_NAME: "debian/3.0", DEBIAN_NAME: "bookworm" } | |
# Branch bullseye not maintained | |
# - { BRANCH_NAME: "bullseye/3.0", DEBIAN_NAME: "bullseye" } | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
# Connect to docker to have user-base docker rate limit instead of by ip | |
- name: Connect to dockerhub | |
run: echo $DOCKERTOKEN | docker login --username ${DOCKERUSER} --password-stdin | |
env: | |
DOCKERUSER: ${{ secrets.DOCKERUSER }} | |
DOCKERTOKEN: ${{ secrets.DOCKERTOKEN }} | |
- name: Generate the debian packages | |
run: cd ./misc/deb-gen && ./build-deb.sh | |
env: | |
BRANCH_NAME: ${{ matrix.debian.BRANCH_NAME }} | |
DEBIAN_NAME: ${{ matrix.debian.DEBIAN_NAME }} | |
- name: Create a compressed archive | |
run: tar -czf ${{ env.OUTPUT }}.${{ matrix.debian.DEBIAN_NAME }}.tar.gz -C misc/deb-gen/build $(cd misc/deb-gen/build && ls *.deb) | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ matrix.debian.DEBIAN_NAME }} | |
path: ${{ env.OUTPUT }}.${{ matrix.debian.DEBIAN_NAME }}.tar.gz | |
Generate-Release: | |
runs-on: ubuntu-latest | |
needs: Generate-Debian-Packages | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/download-artifact@v3 | |
with: | |
path: artifacts | |
- name: debug | |
run: tree | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: artifacts/**/debian-packages.*.tar.gz |