chore: moved module image to a remote location #2
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare files | |
run: | | |
mkdir Cleanup | |
# Move everything except .git and README.md into the Cleanup folder | |
find . -maxdepth 1 ! -name .git ! -name .github ! -name Cleanup ! -name . ! -name README.md -exec mv {} Cleanup/ \; | |
- name: Archive repository | |
run: | | |
zip -r "${GITHUB_REF_NAME}.zip" Cleanup | |
cp "${GITHUB_REF_NAME}.zip" latest.zip | |
- name: Create version.txt | |
run: echo "${GITHUB_REF_NAME}" > version.txt | |
- name: Upload to FTP | |
uses: SamKirkland/[email protected] | |
with: | |
server: ${{ secrets.FTP_SERVER }} | |
username: ${{ secrets.FTP_USERNAME }} | |
password: ${{ secrets.FTP_PASSWORD }} | |
local-dir: ./ | |
server-dir: './' |