Release new version in Copr #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
| # Release new version in Copr | |
| --- | |
| name: Release new version in Copr | |
| on: | |
| # Allows manual workflow run (must in default branch to work) | |
| workflow_dispatch: | |
| release: | |
| types: [published] | |
| env: | |
| DNF_CMD: > | |
| dnf install | |
| --assumeyes | |
| --nodocs | |
| --setopt=install_weak_deps=False | |
| jobs: | |
| release: | |
| name: Build in Copr | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: fedora:latest | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| ${DNF_CMD} \ | |
| copr-cli | |
| - name: Install API token for copr | |
| env: | |
| API_TOKEN_CONTENT: ${{ secrets.COPR_API_TOKEN }} | |
| run: | | |
| mkdir -p "${HOME}/.config" | |
| echo "${API_TOKEN_CONTENT}" > "${HOME}/.config/copr" | |
| - name: Trigger build in Copr | |
| run: | | |
| SPEC_FILE="$(echo *.spec)" | |
| copr build-package --name "${SPEC_FILE%%.*}" wehagy/protonplus |