update branch #2
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 push packages to PackageCloud. | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| paths-ignore: | |
| - 'README.md' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: debian:testing | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install necessary packages | |
| run: apt -q update && apt -yy install build-essential curl equivs git gnupg patchelf python3-pip ruby-full sudo wget | |
| - name: Install PackageCloud | |
| run: gem install package_cloud | |
| - name: Generate Debian package | |
| run: | | |
| sudo ./gh-build.sh | |
| - name: Push package. | |
| env: | |
| PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} | |
| run: | | |
| package_cloud push nitrux/testing/debian/forky $(pwd)/*.deb |