Update build-zip.yml #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
mkdir /tmp/zip/ | |
mkdir /tmp/code/ | |
- name: Copy files from repo | |
run: rsync -av --exclude={'docs/','/dist','playwright', '*.git*' } /home/runner/work/Weight-Tracker/Weight-Tracker/ /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/ |