Skip to content

Commit

Permalink
Do not double zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreWohnsland committed Dec 14, 2024
1 parent 189790a commit ae1463c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,17 @@ jobs:
working-directory: ./web_client
run: npm run build

- name: Archive Build Folder
run: |
tar -czf cocktailberry_web_client.tar.gz -C web_client/dist .
echo "Created tar.gz archive of the build folder."
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: cocktailberry_web_client.tar.gz
name: ./web_client/dist
path: ./cocktailberry_web_client.tar.gz

- name: Upload binaries to release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./cocktailberry_web_client.tar.gz
file: ./web_client/dist
asset_name: cocktailberry_web_client.tar.gz
tag: ${{ github.event.release.tag_name }}

0 comments on commit ae1463c

Please sign in to comment.