feat(ci): add automatic web build and deployment on release
Some checks failed
/ test (release) Failing after 5s
Some checks failed
/ test (release) Failing after 5s
This commit is contained in:
parent
aa3fda9c88
commit
77a2ce129a
1 changed files with 15 additions and 0 deletions
15
.forgejo/workflows/deploy.yml
Normal file
15
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
on:
|
||||
release:
|
||||
types: [published]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- run: apt install sshpass
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Flutter SDK
|
||||
run: |
|
||||
export SETUP_FLUTTER_BRANCH=main
|
||||
curl -fsSL https://raw.githubusercontent.com/flutter-actions/setup-flutter/${SETUP_FLUTTER_BRANCH}/install.sh | bash -s -- 3.35.1 stable
|
||||
- run: bash scripts/build-web.sh
|
||||
- run: sshpass -p "${{ secrets.DEPLOY_PASSWORD }}" scp -o StrictHostKeyChecking=accept-new -rp build/web ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_ADDRESS }}:${{ secrets.DEPLOY_PATH }}
|
||||
Reference in a new issue