Adjust workflow for upload/download v4 changes

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2023-12-16 23:14:42 +01:00
parent bc48f63ed0
commit a1cf6e4ff0
+15 -9
View File
@@ -121,7 +121,7 @@ jobs:
if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v4.0.0
with:
name: tmp-storage
name: ${{ matrix.bin_name }}-binary
path: '${{ matrix.bin_name }}*'
-
name: Extract documentation files from container
@@ -133,7 +133,7 @@ jobs:
if: github.event_name != 'pull_request' && matrix.platform == 'linux/amd64'
uses: actions/upload-artifact@v4.0.0
with:
name: tmp-storage
name: api-docs
path: 'api-docs.tar.gz'
deploy:
@@ -146,15 +146,21 @@ jobs:
uses: actions/checkout@v4.1.1
-
name: Get Binaries and documentation built in previous jobs
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.0.0
id: download
with:
name: tmp-storage
path: ftl-builds/
path: download/
-
name: Display structure of downloaded files
run: ls -R
working-directory: ${{steps.download.outputs.download-path}}
-
name: Copy all artifacts from sub-directories to ftl_builds/
run: |
mkdir ftl_builds/
cp ${{steps.download.outputs.download-path}}/**/* ftl_builds/
-
name: Install SSH Key
uses: benoitchantre/setup-ssh-authentication-action@1.0.1
@@ -163,14 +169,14 @@ jobs:
known-hosts: ${{ secrets.KNOWN_HOSTS }}
-
name: Untar documentation files
working-directory: ${{steps.download.outputs.download-path}}
working-directory: ftl_builds/
run: |
mkdir docs/
tar xzvf api-docs.tar.gz -C docs/
-
name: Display structure of files ready for upload
run: ls -R
working-directory: ${{steps.download.outputs.download-path}}
working-directory: ftl_builds/
-
name: Transfer Builds to Pi-hole server for pihole checkout
if: github.actor != 'dependabot[bot]'
@@ -178,7 +184,7 @@ jobs:
USER: ${{ secrets.SSH_USER }}
HOST: ${{ secrets.SSH_HOST }}
TARGET_DIR: ${{ needs.smoke-tests.outputs.OUTPUT_DIR }}
SOURCE_DIR: ${{ steps.download.outputs.download-path }}
SOURCE_DIR: ftl_builds/
run: |
bash ./deploy.sh
-
@@ -187,4 +193,4 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
${{ steps.download.outputs.download-path }}/*
ftl_builds/*