Update workflow: Publish to FTP
Some checks failed
/ build-element (push) Has been cancelled

This commit is contained in:
MrLetsplay 2025-04-09 13:54:18 +02:00
parent a3a43714d4
commit 3d223e2aa5
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg

View File

@ -51,13 +51,24 @@ jobs:
nvm use 22 &&
yarn run build --linux rpm --linux deb --linux tar.xz --linux AppImage --win squirrel --publish never
- name: Publish artifacts
uses: christopherhx/gitea-upload-artifact@v4
- name: Copy artifacts to output directory
run: >
mkdir output &&
cp dist/element-desktop*.rpm dist/Element*.AppImage dist/element-desktop*.deb dist/element-desktop*.tar.xz dist/squirrel-windows/Element*.exe output/
#- name: Publish artifacts
# uses: christopherhx/gitea-upload-artifact@v4
# with:
# name: element-desktop
# path: |
# output/
- name: Publish artifacts via FTP
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
with:
name: element-desktop
path: |
dist/element-desktop*.rpm
dist/Element*.AppImage
dist/element-desktop*.deb
dist/element-desktop*.tar.xz
dist/squirrel-windows/Element*.exe
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ./output/
server-dir: ./artifacts/element/