Skip to content

Commit

Permalink
Skip regular packages generation while building git tag
Browse files Browse the repository at this point in the history
Signed-off-by: Remigiusz Kołłątaj <remigiusz.kollataj@gmail.com>
  • Loading branch information
rkollataj committed Jun 21, 2021
1 parent cfc1cf8 commit 3ff6ace
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
QT_QPA_PLATFORM: offscreen

- name: Create packages
if: startsWith(github.ref, 'refs/heads/')
working-directory: ${{github.workspace}}/build
run: |
cpack -G DEB
Expand All @@ -54,6 +55,7 @@ jobs:
mv *.deb *.tar.xz ../master
- name: Get Package Names
if: startsWith(github.ref, 'refs/heads/')
id: package_names
working-directory: ${{github.workspace}}/master
run: |
Expand All @@ -67,13 +69,15 @@ jobs:
echo "::set-output name=STANDALONE_ZIP::$STANDALONE_ZIP"
- name: Upload Normal Package
if: startsWith(github.ref, 'refs/heads/')
uses: actions/upload-artifact@v2
with:
name: ${{steps.package_names.outputs.NORMAL_ZIP}}
path: master/${{steps.package_names.outputs.NORMAL}}
retention-days: 90

- name: Upload Standalone Package
if: startsWith(github.ref, 'refs/heads/')
uses: actions/upload-artifact@v2
with:
name: ${{steps.package_names.outputs.STANDALONE_ZIP}}
Expand Down Expand Up @@ -190,13 +194,15 @@ jobs:
run: make -j4

- name: Create packages
if: startsWith(github.ref, 'refs/heads/')
working-directory: ${{github.workspace}}/build
run: |
cpack -G DragNDrop
mkdir ../master
mv *.dmg ../master
- name: Get Package Names
if: startsWith(github.ref, 'refs/heads/')
id: package_names
working-directory: ${{github.workspace}}/master
run: |
Expand All @@ -206,6 +212,7 @@ jobs:
echo "::set-output name=NORMAL_ZIP::$NORMAL_ZIP"
- name: Upload Normal Package
if: startsWith(github.ref, 'refs/heads/')
uses: actions/upload-artifact@v2
with:
name: ${{steps.package_names.outputs.NORMAL_ZIP}}
Expand Down Expand Up @@ -258,6 +265,7 @@ jobs:
run: cmake --build . --config Release

- name: Create Packages
if: startsWith(github.ref, 'refs/heads/')
working-directory: ${{github.workspace}}/build
run: |
cpack -G 7Z
Expand All @@ -267,6 +275,7 @@ jobs:
move *.7z ..\master
- name: Get Package Names
if: startsWith(github.ref, 'refs/heads/')
id: package_names
shell: bash
working-directory: ${{github.workspace}}/master
Expand All @@ -281,13 +290,15 @@ jobs:
echo "::set-output name=STANDALONE_ZIP::$STANDALONE_ZIP"
- name: Upload Normal Package
if: startsWith(github.ref, 'refs/heads/')
uses: actions/upload-artifact@v2
with:
name: ${{steps.package_names.outputs.NORMAL_ZIP}}
path: master\${{steps.package_names.outputs.NORMAL}}
retention-days: 90

- name: Upload Standalone Package
if: startsWith(github.ref, 'refs/heads/')
uses: actions/upload-artifact@v2
with:
name: ${{steps.package_names.outputs.STANDALONE_ZIP}}
Expand Down

0 comments on commit 3ff6ace

Please sign in to comment.