Bump ext/Avalonia from 6dd9eb4 to 4e30256 (#50)
#64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build_job: | |
| if: github.event_name == 'push' | |
| runs-on: windows-latest | |
| name: Build and Deploy Job | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: true | |
| - name: Install .NET 8 SDK | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: '8.x' | |
| - uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: '9.x' | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22.14 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.8.0 | |
| - name: workloads 1 | |
| working-directory: ./ext/Avalonia/src/ | |
| run: dotnet workload restore ./iOS/Avalonia.iOS/Avalonia.iOS.csproj | |
| - name: workloads 2 | |
| working-directory: ./ext/Avalonia/src/ | |
| run: dotnet workload restore ./Android/Avalonia.Android/Avalonia.Android.csproj | |
| - name: Run build script | |
| run: ./build.ps1 -pack | |
| - name: Upload SFHB result temporarily as atifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: website-artifact | |
| path: ./artifacts.zip | |
| retention-days: 1 | |
| docusaurus_deploy_job: | |
| runs-on: ubuntu-latest | |
| name: Build website | |
| needs: build_job | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: website-artifact | |
| path: ./website/ | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22.14 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.8.0 | |
| - name: Run build script | |
| working-directory: ./website/ | |
| run: bash ./build.sh --build | |
| - name: Install dependencies | |
| run: sudo apt-get update; sudo apt-get install -y rsync | |
| - name: Setup key | |
| working-directory: ./website/ | |
| run: echo '${{ secrets.DEPLOY_KEY }}' > ./upload.key && chmod 700 ./upload.key | |
| - name: Build And Deploy | |
| working-directory: ./website/ | |
| run: ./deploy.sh ${{ vars.DEPLOY_HOST }} ${{ vars.DEPLOY_PORT }} ${{ vars.DEPLOY_USER }} |