run #4
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: | |
| - cicd | |
| jobs: | |
| build_and_deploy_job: | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-24.04 | |
| name: Build and Deploy Job | |
| steps: | |
| - name: Env | |
| run: free; df -h;whoami | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: true | |
| - uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22.14 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.7.0 | |
| - name: Install dependencies | |
| run: sudo apt-get install -y rsync wget apt-transport-https software-properties-common && wget -q https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb && dpkg -i packages-microsoft-prod.deb && apt update && apt install -y powershell | |
| - name: Run build script | |
| run: pwsh build.ps1 -version 11.2.6 | |
| # - name: Setup key | |
| # run: echo '${{ secrets.DEPLOY_KEY }}' > ./upload.key && chmod 700 ./upload.key | |
| # - name: Build And Deploy | |
| # run: ./deploy.sh $DEPLOY_ARGS |