Updating build pipelines

This commit is contained in:
Jan Wagner 2022-10-20 13:07:47 +02:00
parent 03a0d32d25
commit 14b52890f8
2 changed files with 12 additions and 4 deletions

View file

@ -17,9 +17,12 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
env: env:
DEBIAN_FRONTEND: "noninteractive" DEBIAN_FRONTEND: "noninteractive"
- name: Remove github artefacts
run: |
rm -rf .github*
- name: Adjust distibution in changelog file - name: Adjust distibution in changelog file
run: | run: |
sed -i '0,/restricted/s//stable/' debian/changelog sed -i '0,/restricted/s//stable/' debian/changelog
@ -27,6 +30,7 @@ jobs:
uses: dawidd6/action-debian-package@v1.4.0 uses: dawidd6/action-debian-package@v1.4.0
with: with:
artifacts_directory: debian/build/release/ artifacts_directory: debian/build/release/
os_distribution: testing
- name: Debug - name: Debug
run: | run: |
ls -la ls -la

View file

@ -18,7 +18,7 @@ jobs:
release-id: ${{ steps.create_release.outputs.id }} release-id: ${{ steps.create_release.outputs.id }}
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Install needed packages - name: Install needed packages
run: | run: |
if [ $(dpkg -l | grep -c dpkg-dev) -ne 1 ]; then sudo apt-get update && sudo apt-get install -y dpkg-dev; fi if [ $(dpkg -l | grep -c dpkg-dev) -ne 1 ]; then sudo apt-get update && sudo apt-get install -y dpkg-dev; fi
@ -43,9 +43,12 @@ jobs:
needs: create-release needs: create-release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
env: env:
DEBIAN_FRONTEND: "noninteractive" DEBIAN_FRONTEND: "noninteractive"
- name: Remove github artefacts
run: |
rm -rf .github*
- name: Adjust distibution in changelog file - name: Adjust distibution in changelog file
run: | run: |
sed -i '0,/restricted/s//stable/' debian/changelog sed -i '0,/restricted/s//stable/' debian/changelog
@ -53,13 +56,14 @@ jobs:
uses: dawidd6/action-debian-package@v1.4.0 uses: dawidd6/action-debian-package@v1.4.0
with: with:
artifacts_directory: debian/build/release/ artifacts_directory: debian/build/release/
os_distribution: testing
# - name: Build Debian package # - name: Build Debian package
# uses: pi-top/action-debian-package@v0.2.0 # uses: pi-top/action-debian-package@v0.2.0
# with: # with:
# artifacts_directory: debian/build/release/ # artifacts_directory: debian/build/release/
# target_architectures: "amd64,i386" # target_architectures: "amd64,i386"
- name: Upload the artifacts - name: Upload the artifacts
uses: skx/github-action-publish-binaries@release-0.15 uses: skx/github-action-publish-binaries@release-2.0
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with: