name: "Make shallow bundles" on: workflow_dispatch: push: branches: [ main ] schedule: - cron: '0 3 * * *' # Scheduled runs every day at 3am UTC jobs: fake: if: ${{ github.repository_owner == 'Armbian' }} runs-on: ubuntu-latest name: Generate control artefact steps: - run: | echo "not empty" > changes - uses: actions/upload-artifact@v3 with: path: changes name: changes if-no-files-found: ignore git-trees: if: ${{ github.repository_owner == 'Armbian' }} runs-on: ubuntu-latest needs: [ fake ] name: "GIT tree" steps: - name: Checkout uses: actions/checkout@v2 - name: Cache git worktree uses: actions/cache@v2 with: path: /tmp/workdir/kernel/worktree key: ${{ runner.os }}-kernel-worktree-${{ github.sha }} restore-keys: | ${{ runner.os }}-kernel-worktree - name: Prepare git trees, bulk of work run: | BASE_WORK_DIR="/tmp/workdir" bash shallow_kernel_tree.sh - name: Install SSH key for storage uses: shimataro/ssh-key-action@v2 with: key: ${{ secrets.KEY_TORRENTS }} known_hosts: ${{ secrets.KNOWN_HOSTS_UPLOAD }} if_key_exists: replace - name: "GH latest release" uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" automatic_release_tag: "latest" prerelease: false title: "Linux shallow git trees" files: | /tmp/workdir/kernel/output/*.gitshallow /tmp/workdir/kernel/output/*.gitbundle /tmp/workdir/kernel/output/*.git.tar - name: Upload firmware to release uses: softprops/action-gh-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: latest body: "

Armbian Linux

" files: /tmp/workdir/kernel/worktree/LICENSE - name: Deploy to server run: | ls -l /tmp/workdir/kernel/output/ sudo apt-get -y -qq install lftp lftp -u upload, -e "set net:timeout 4;set net:max-retries 6;mirror --Remove-source-files -R --no-empty-dirs --parallel=8 --no-perms /tmp/workdir/kernel/output/ gitbundles/ ;bye" sftp://users.armbian.com sync-servers: permissions: contents: none name: "Sync servers" needs: [git-trees] uses: armbian/scripts/.github/workflows/sync-servers.yml@master with: KEY_ID: 'upload' secrets: KEY_UPLOAD: ${{ secrets.KEY_UPLOAD }} USER_REPOSITORY: ${{ secrets.USER_REPOSITORY }} HOST_REPOSITORY: ${{ secrets.HOST_REPOSITORY }} KNOWN_HOSTS_REPOSITORY: ${{ secrets.KNOWN_HOSTS_REPOSITORY }}