mirror of https://github.com/opencardev/aasdk
added upload artifact
parent
d202682df2
commit
a4ac448289
|
@ -3,15 +3,8 @@ name: Build and test with docker
|
|||
on: [ push, pull_request ]
|
||||
|
||||
jobs:
|
||||
build-image:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build the Docker image
|
||||
run: docker build -t aasdk_builder --file buildenv/Dockerfile .
|
||||
compile:
|
||||
runs-on: ${{ matrix.host }}
|
||||
needs: [build-image]
|
||||
strategy:
|
||||
fail-fast: false
|
||||
max-parallel: 3
|
||||
|
@ -30,8 +23,29 @@ jobs:
|
|||
arch: "amd64"
|
||||
}
|
||||
|
||||
name: 'Upload release: ${{ matrix.config.name }}'
|
||||
name: 'Build and Upload release: ${{ matrix.config.name }}'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
-
|
||||
name: Build the Docker image
|
||||
run: docker build -t aasdk_builder --file buildenv/Dockerfile .
|
||||
-
|
||||
name: 'Build ${{ matrix.config.arch }} Debian package'
|
||||
run: docker run -v "${PWD}/release":/release aasdk_builder:latest ${{ matrix.config.arch }}
|
||||
run: docker run -v "${PWD}/release":/release aasdk_builder:latest ${{ matrix.config.arch }}
|
||||
-
|
||||
name: Get Name of Artifact
|
||||
id: get-artifact-name
|
||||
run: |
|
||||
ls -hla
|
||||
ARTIFACT_PATHNAME=$(ls ./release/*.deb | head -n 1)
|
||||
ARTIFACT_NAME=$(basename $ARTIFACT_PATHNAME)
|
||||
echo ::set-output name=artifact_filename::${ARTIFACT_NAME}
|
||||
echo ::set-output name=artifact_path::${ARTIFACT_PATHNAME}
|
||||
-
|
||||
name: Upload build artifacts
|
||||
id: upload_deploy
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ steps.get-artifact-name.outputs.artifact_filename }}
|
||||
path: |
|
||||
${{ steps.get-artifact-name.outputs.artifact_path }}
|
||||
|
|
Loading…
Reference in New Issue