name: Artifact Csharp on: workflow_dispatch: push: branches: [master] paths: ['web/documentserver-example/csharp/**'] pull_request: branches: [master] paths: ['web/documentserver-example/csharp/**'] jobs: artifact: runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v3 - name: Build Artifact run: | cd ${{ github.workspace }} git submodule update --init --recursive cd ./web/documentserver-example/csharp mkdir -p ./deploy/'DotNet (Csharp) Example' rsync -av --exclude='deploy' ./ ./deploy/'DotNet (Csharp) Example' rm -rf ./deploy/'DotNet (Csharp) Example'/assets/.git - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: DotNet.Csharp.Example path: ${{ github.workspace }}/web/documentserver-example/csharp/deploy