name: Deploy on: push: branches: - master workflow_dispatch: jobs: build: uses: ./.gitea/workflows/build.yaml deploy: runs-on: almalinux-8 container: image: git.query.consul/unkin/almalinux8-runnerdnd:latest options: --privileged steps: - name: Checkout code uses: actions/checkout@v3 - name: Build Packages run: | make all - name: Create dist directory run: | mkdir -p /tmp/unkin/rpmbuilder/dist - uses: actions/download-artifact@v3 with: name: rpms path: /tmp/unkin/rpmbuilder/dist/ - name: Show RPMs from Artifacts run: | find /tmp -type f -name "*.rpm" - name: Show RPMs from Build run: | find /workspace -type f -name "*.rpm" - name: Upload RPMs to Gitea env: DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }} run: | for rpm in $(find /workspace -type f -name "*.rpm"); do curl --user droneci:${{ secrets.DRONECI_PASSWORD }} --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalinux/el8/upload done