Skip to content
Permalink
Browse files

CI/CD: Don't double compress artifact files

  • Loading branch information
brandonlehmann committed Dec 29, 2019
1 parent 68518b5 commit 18b45d83252c323447ce32042a7e1c35cbc8c832
Showing with 15 additions and 18 deletions.
  1. +15 −18 .github/workflows/matrix.yml
@@ -115,14 +115,13 @@ jobs:
cp ${TARGETS} turtlecoin-${TAG}/
cp ../../LICENSE turtlecoin-${TAG}/
tar cvfz turtlecoin-${LABEL}-${TAG}.tar.gz turtlecoin-${TAG}/
rm -rf builds
mkdir builds
cp turtlecoin-${LABEL}-${TAG}.tar.gz builds
echo ::set-output name=binary_path::turtlecoin-${TAG}
echo ::set-output name=artifact_name::turtlecoin-${LABEL}-${TAG}
echo ::set-output name=file_name::turtlecoin-${LABEL}-${TAG}.tar.gz
# Upload to GH Release
- name: Upload to GH Release
if: github.event_name == 'release' && github.repository == 'turtlecoin/turtlecoin' && matrix.deployable
if: github.event_name == 'release' && matrix.deployable
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -136,8 +135,8 @@ jobs:
- name: Upload To GH Artifacts
uses: actions/upload-artifact@v1.0.0
with:
name: ${{ steps.before_deploy.outputs.file_name }}
path: ./build/src/${{ steps.before_deploy.outputs.file_name }}
name: ${{ steps.before_deploy.outputs.artifact_name }}
path: ./build/src/${{ steps.before_deploy.outputs.binary_path }}

# Mac builds on Catalina VM
macos_build:
@@ -198,15 +197,14 @@ jobs:
cp ${TARGETS} turtlecoin-${TAG}/
cp ../../LICENSE turtlecoin-${TAG}/
tar cvfz turtlecoin-${LABEL}-${TAG}.tar.gz turtlecoin-${TAG}/
rm -rf builds
mkdir builds
cp turtlecoin-${LABEL}-${TAG}.tar.gz builds
echo ::set-output name=binary_path::turtlecoin-${TAG}
echo ::set-output name=artifact_name::turtlecoin-${LABEL}-${TAG}
echo ::set-output name=file_name::turtlecoin-${LABEL}-${TAG}.tar.gz
# Upload to GH Release
- name: Upload to GH Release
if: github.event_name == 'release' && github.repository == 'turtlecoin/turtlecoin'
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -220,8 +218,8 @@ jobs:
- name: Upload To GH Artifacts
uses: actions/upload-artifact@v1.0.0
with:
name: ${{ steps.before_deploy.outputs.file_name }}
path: ./build/src/${{ steps.before_deploy.outputs.file_name }}
name: ${{ steps.before_deploy.outputs.artifact_name }}
path: ./build/src/${{ steps.before_deploy.outputs.binary_path }}

# Windows Builds on Windows Server 2019
windows_build:
@@ -281,15 +279,14 @@ jobs:
cp *.exe turtlecoin-${TAG}/
cp ../../../LICENSE turtlecoin-${TAG}/
7z a turtlecoin-${LABEL}-${TAG}.zip turtlecoin-${TAG}/
rm -rf builds
mkdir builds
cp turtlecoin-${LABEL}-${TAG}.zip builds
echo ::set-output name=binary_path::turtlecoin-${TAG}
echo ::set-output name=artifact_name::turtlecoin-${LABEL}-${TAG}
echo ::set-output name=file_name::turtlecoin-${LABEL}-${TAG}.zip
# Upload to GH Release
- name: Upload to GH Release
if: github.event_name == 'release' && github.repository == 'turtlecoin/turtlecoin'
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -303,5 +300,5 @@ jobs:
- name: Upload To GH Artifacts
uses: actions/upload-artifact@v1.0.0
with:
name: ${{ steps.before_deploy.outputs.file_name }}
path: ./build/src/Release/${{ steps.before_deploy.outputs.file_name }}
name: ${{ steps.before_deploy.outputs.artifact_name }}
path: ./build/src/Release/${{ steps.before_deploy.outputs.binary_path }}

0 comments on commit 18b45d8

Please sign in to comment.
You can’t perform that action at this time.