diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f961d28..5da1d44 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,9 +33,9 @@ jobs: - name: Build mic run: | - export VERSION=devel - export RELEASE=4.5.0.24 - export EXTRA_NAME=-alpha2 + export VERSION=$(echo $GITHUB_REF_NAME | cut -d "-" -f 2) + export RELEASE=$(echo $GITHUB_REF_NAME | cut -d "-" -f 3) + export EXTRA_NAME=-$(echo $GITHUB_REF_NAME | cut -d "-" -f 4-) docker run --rm --privileged --mount type=bind,src=$PWD,dst=/share --mount type=bind,src=/data,dst=/data --env-file env.list -e VERSION -e RELEASE -e EXTRA_NAME coderus/sailfishos-platform-sdk:$RELEASESDK /bin/bash -c " /share/scripts/create-image.sh --release $RELEASE --version $VERSION ;"