Skip to content

Commit

Permalink
534: Zip files before uploading (#536)
Browse files Browse the repository at this point in the history
* 534: Zip files before uploading

* flatten the dir
  • Loading branch information
anlesk authored Sep 30, 2023
1 parent a8e9fad commit daec177
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/sync_peloton_to_garmin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,16 @@ jobs:
P2G_GARMIN__EMAIL: ${{ secrets.P2G_GARMIN__EMAIL }}
P2G_GARMIN__PASSWORD: ${{ secrets.P2G_GARMIN__PASSWORD }}
TZ: America/Chicago
- uses: actions/upload-artifact@v3

- name: archive files
if: ${{ github.event.inputs.saveLocalCopy }}
run: |
apt-get update
apt-get install -y zip
zip -r -j output.zip ${{ env.OUTPUT_DIR }}
- uses: actions/upload-artifact@v3
with:
name: output
path: ${{ env.OUTPUT_DIR }}/fit/*.fit
path: output.zip
if-no-files-found: error

0 comments on commit daec177

Please sign in to comment.