parent
bb6d075168
commit
b8c38874a2
|
@ -31,7 +31,7 @@ jobs:
|
||||||
MSIGN="false"
|
MSIGN="false"
|
||||||
WSIGN="false"
|
WSIGN="false"
|
||||||
RELEASE="false"
|
RELEASE="false"
|
||||||
if [[ "$GITHUB_REF" == *"tags/v" || "$GITHUB_REF" == *"refs/heads/release" ]]; then
|
if [[ "$GITHUB_REF" == *"tags/v"* || "$GITHUB_REF" == *"refs/heads/release" ]]; then
|
||||||
RELEASE="true"
|
RELEASE="true"
|
||||||
NAME="$GITHUB_REF_NAME"
|
NAME="$GITHUB_REF_NAME"
|
||||||
fi
|
fi
|
||||||
|
@ -144,9 +144,9 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ env.signMacRelease }}" == "true" ]]; then
|
if [[ "${{ env.signMacRelease }}" == "true" ]]; then
|
||||||
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCPACK_PACKAGE_VERSION=${{env.githash}} ${{matrix.config.extraCMakeConfig}} ${{matrix.config.cmakeSigning}}
|
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCPACK_PACKAGE_VERSION="${{env.githash}}" ${{matrix.config.extraCMakeConfig}} ${{matrix.config.cmakeSigning}}
|
||||||
else
|
else
|
||||||
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCPACK_PACKAGE_VERSION=${{env.githash}} ${{matrix.config.extraCMakeConfig}}
|
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCPACK_PACKAGE_VERSION="${{env.githash}}" ${{matrix.config.extraCMakeConfig}}
|
||||||
fi
|
fi
|
||||||
cmake --build build ${{ matrix.config.buildTarget }}
|
cmake --build build ${{ matrix.config.buildTarget }}
|
||||||
cd build
|
cd build
|
||||||
|
@ -198,7 +198,7 @@ jobs:
|
||||||
files: ashirt-*/ashirt-*.*
|
files: ashirt-*/ashirt-*.*
|
||||||
|
|
||||||
- name: Deploy Tag
|
- name: Deploy Tag
|
||||||
if: needs.run-info.outputs.isRelease == 'true'
|
if: contains(github.ref, 'tags/v') || github.ref == 'refs/heads/release'
|
||||||
uses: "marvinpinto/action-automatic-releases@latest"
|
uses: "marvinpinto/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
Loading…
Reference in New Issue