Merge pull request #27 from CESNET/v1.1.0 #9
This file contains 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: release package on copr | |
on: | |
push: | |
branches: | |
- release | |
jobs: | |
release-package-on-copr: | |
runs-on: ubuntu-latest | |
container: oraclelinux:8 | |
steps: | |
- name: Install git | |
run: dnf install -y git | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
- name: Install copr-cli | |
run: | | |
dnf install -y dnf-plugins-core epel-release | |
dnf -y copr enable @CESNET/NEMEA | |
dnf install -y copr-cli | |
- name: Mark github workspace as safe | |
run: git config --system --add safe.directory $PWD | |
- name: make rpm | |
run: make rpm | |
- name: Create copr config | |
run: | | |
mkdir ~/.config | |
echo "${{ secrets.COPR_CONFIG }}" >> ~/.config/copr | |
- name: Upload SRPM to copr | |
run: | | |
copr build @CESNET/NEMEA build/pkg/rpm/rpmbuild/SRPMS/* | |
copr build @CESNET/NEMEA-stable build/pkg/rpm/rpmbuild/SRPMS/* |