diff --git a/.git-ftp-ignore b/.git-ftp-ignore new file mode 100644 index 0000000..a947c12 --- /dev/null +++ b/.git-ftp-ignore @@ -0,0 +1,2 @@ +.git* +*.md diff --git a/.git-ftp-include b/.git-ftp-include new file mode 100644 index 0000000..54896d8 --- /dev/null +++ b/.git-ftp-include @@ -0,0 +1 @@ +!profile.zip diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..97eae26 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +on: + release: + types: [published] + +# Zips the profile and uploads to the vatsys ftp server +name: Publish Profile +jobs: + zip-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Archive Release + uses: thedoctor0/zip-release@master + with: + filename: 'profile.zip' + exclusions: '*.git* /*node_modules/* .editorconfig *.md' + - name: FTP-Deploy-Action + uses: SamKirkland/FTP-Deploy-Action@3.0.0 + with: + ftp-server: ftp://ftp.sawbe.com/ + ftp-username: ${{ secrets.FTP_USERNAME }} + ftp-password: ${{ secrets.FTP_PASSWORD }} diff --git a/Profile.xml b/Profile.xml index 2e5f491..f12a05e 100644 --- a/Profile.xml +++ b/Profile.xml @@ -1,6 +1,6 @@ - +