Skip to content

Update build-zip.yml #50

Update build-zip.yml

Update build-zip.yml #50

Workflow file for this run

name: Zip and FTP #3
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# with:
# path: /home/runner/work/Weight-Tracker/Weight-Tracker/weight-loss-tracker/weight-loss-tracker/
- name: Create temporary directories
run: |
echo $GITHUB_WORKSPACE
mkdir /tmp/zip/
mkdir /tmp/code/
- name: Copy files from repo
run: rsync -av --exclude={'docs/','/dist','/playwright','*.git*' } $GITHUB_WORKSPACE /tmp/code/weight-loss-tracker/
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: 'zip'
directory: /tmp/code/
filename: '/tmp/zip/weight-tracker.zip'
#exclusions: '*.git* /*node_modules/* .editorconfig /playwright* /docs* /dist*'
- name: Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_URL }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: /tmp/zip/
# --exclude={'docs/','/dist','playwright', '*.git*' }