This repository has been archived on 2025-08-25. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Seshat/.forgejo/workflows/deploy.yml
Ninjdai 594c54930e
Some checks failed
/ test (release) Failing after 1m44s
fix(ci): use flutter build command instead of script
2025-08-20 11:45:29 +02:00

18 lines
879 B
YAML

on:
release:
types: [published]
jobs:
test:
runs-on: docker
steps:
- run: apt update && apt install sshpass
- uses: actions/checkout@v4
- name: Setup Flutter SDK
run: |
export SETUP_FLUTTER_BRANCH=main
export FLUTTER_VERSION=3.35.1
git config --global --add safe.directory /workspace/UEAuvergne/Seshat/.setup-flutter/tool_cache/flutter/${FLUTTER_VERSION}/stable/flutter
curl -fsSL https://raw.githubusercontent.com/flutter-actions/setup-flutter/${SETUP_FLUTTER_BRANCH}/install.sh | bash -s -- ${FLUTTER_VERSION} ${FLUTTER_CHANNEL}
- run: flutter build web --release --wasm --base-href /app/
- run: sshpass -p "${{ secrets.DEPLOY_PASSWORD }}" scp -o StrictHostKeyChecking=accept-new -rp build/web ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_ADDRESS }}:${{ secrets.DEPLOY_PATH }}