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 e5d383548d
All checks were successful
/ test (release) Successful in 8m3s
feat(ci): enable flutter cache
2025-08-20 12:04:48 +02:00

18 lines
721 B
YAML

on:
release:
types: [published]
jobs:
test:
runs-on: docker
steps:
- run: apt update && apt install -y sshpass jq
- uses: actions/checkout@v4
- name: Set up Flutter
uses: https://github.com/subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.35.1
cache: true
- run: git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.35.1-x64
- 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 }}