Merge pull request #778 from linuxmuster/update/linuxmuster-tools7-lm… #1566
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: Build and Deploy | |
| on: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v2.3.1 | |
| with: | |
| lfs: true | |
| - name: Install and Build 🔧 | |
| run: | | |
| sudo apt update && sudo apt install reprepro python3 python3-pip python3-mako | |
| # import keys | |
| gpg2 --import deploy/pub.gpg | |
| echo -e "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --import --no-tty --batch --yes | |
| mkdir incoming | |
| cp packages/*/*/* incoming/ | |
| reprepro -V processincoming default | |
| reprepro -V export | |
| mv dists deploy | |
| mv pool deploy | |
| mv deploy/deploy-disclaimer.md deploy/README.md | |
| python3 createStaticDirectoryListing.py deploy --indexPage README.md | |
| - name: Deploy 🚀 | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| uses: JamesIves/github-pages-deploy-action@4.1.3 | |
| with: | |
| branch: deploy | |
| folder: deploy |