Skip to content

Commit

Permalink
fix: don't upload artifacts by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Oct 10, 2023
1 parent 8d60c70 commit e429c27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,20 @@ jobs:
runner_address: ${{ secrets.earthly_runner_address }}
artifact: "true"
- name: Generate artifact name
if: startsWith(github.ref, 'refs/tags/')
id: artifact
run: |
earthfile=$(basename ${{ matrix.earthfile }})
platform=$(echo '${{ matrix.platform }}' | sed 's/\//-/g')
echo "name=$earthfile-$platform" >> $GITHUB_OUTPUT
- name: Compress artifact
if: startsWith(github.ref, 'refs/tags/')
run: |
cwd=$(pwd)
cd ${{ steps.build.outputs.artifact }} && tar -czvf "$cwd/${{ steps.artifact.outputs.name }}.tar.gz" .
- name: Upload artifact
uses: actions/upload-artifact@v3
if: startsWith(github.ref, 'refs/tags/')
with:
name: ${{ steps.artifact.outputs.name }}
path: ${{ steps.artifact.outputs.name }}.tar.gz
Expand Down

0 comments on commit e429c27

Please sign in to comment.