name: Build and Upload RPMs on: push: branches: - master jobs: build: name: Build on AlmaLinux 8 runs-on: almalinux-8 container: image: git.query.consul/unkin/almalinux8:latest steps: - name: Install nodejs:20 run: | dnf module enable -y nodejs:20 dnf install -y nodejs - name: Checkout code uses: actions/checkout@v3 - name: Install RPMFusion run: | dnf install -y --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm dnf install -y --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm - name: Install required packages run: | dnf install -y golang gcc gcc-c++ make git sqlite-devel taglib-devel ffmpeg mpv rpmdevtools wget systemd sqlite taglib - name: Build project run: make build - name: Upload RPMs to Gitea env: DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }} run: | for rpm in /workspace/src/rpmbuild/RPMS/*/*.rpm; do curl --user droneci:${{ secrets.DRONECI_PASSWORD }} --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalinux/el8/upload done