feature/TUX-AVATAR-PROJECT-4: Add initial readme file (#26) #12
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: Generate assets json file | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Python configuration | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Execute python script | |
run: python ./bin/generate_assets.py -p ./images | |
- name: Install lftp | |
run: sudo apt-get update && sudo apt-get install -y lftp | |
- name: Send file by ftp to hosting | |
run: lftp -c "open -u ${{ secrets.TUX_FTP_USERNAME }},${{ secrets.TUX_FTP_PASSWORD }} ftp://${{ secrets.TUX_FTP_DOMAIN }};cd ${{ secrets.TUX_FTP_FOLDER }}; put urls.json" |