.github: Clone debian control files to tmp dir

This commit is contained in:
Matt Borgerson 2022-02-28 01:42:33 -07:00
parent 2b27021eef
commit a32f271d55
1 changed files with 22 additions and 14 deletions

View File

@ -106,19 +106,23 @@ jobs:
path: /tmp/xemu-ccache
key: cache-${{ runner.os }}-${{ matrix.configuration }}-${{ github.sha }}
restore-keys: cache-${{ runner.os }}-${{ matrix.configuration }}-
- name: Clone Debian packaging
uses: actions/checkout@v2
with:
ref: deb
path: src
- name: Download source package
uses: actions/download-artifact@v2
with:
name: src.tar.gz
- name: Extract source package
run: tar -C src -xf src.tar.gz
- name: Create debian changelog
run: |
mkdir src
tar -C src -xf src.tar.gz
- name: Clone Debian packaging
uses: actions/checkout@v2
with:
ref: deb
path: debian-tmp
- name: Integrate Debian packaging
run: |
mv debian-tmp/debian src
rm -rf debian-tmp
pushd src
echo -e "\
xemu (1:$(cat XEMU_VERSION)-0) unstable; urgency=medium\n\
@ -318,19 +322,23 @@ jobs:
needs: [Ubuntu, macOSUniversal, Windows]
runs-on: ubuntu-latest
steps:
- name: Clone Debian packaging
uses: actions/checkout@v2
with:
ref: deb
path: src
- name: Download source package
uses: actions/download-artifact@v2
with:
name: src.tar.gz
- name: Extract source package
run: tar -C src -xf src.tar.gz
- name: Create changelog
run: |
mkdir src
tar -C src -xf src.tar.gz
- name: Clone Debian packaging
uses: actions/checkout@v2
with:
ref: deb
path: debian-tmp
- name: Integrate Debian packaging
run: |
mv debian-tmp/debian src
rm -rf debian-tmp
pushd src
echo -e "\
xemu (1:$(cat XEMU_VERSION)-0) unstable; urgency=medium\n\