-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (35 loc) · 1.21 KB
/
alttab.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: alttab
on:
push:
paths:
- alttab/**
jobs:
copr:
name: copr
runs-on: ubuntu-22.04
steps:
- name: Setup
run: |
pip3 install -I copr-cli==1.109
- name: Login
run: |
copr-cli --config <(echo "${COPR_CLI_CONFIG}") whoami
env:
COPR_CLI_CONFIG: ${{secrets.COPR_CLI_CONFIG}}
- name: Build
id: build
run: |
set -euo pipefail && copr-cli --config <(echo "${COPR_CLI_CONFIG}") buildscm --clone-url "https://github.com/${{github.repository}}" --commit "${{github.sha}}" --subdir "${BUILD_DIR}" --spec "${BUILD_PACKAGE}.spec" --type git --method rpkg "${BUILD_REPO}" | tee >(sed -n "s/^Created builds: /build_id=/p" >> "$GITHUB_OUTPUT")
env:
COPR_CLI_CONFIG: ${{secrets.COPR_CLI_CONFIG}}
BUILD_REPO: pgaskin/${{fromJSON('["alttab", "testing"]')[github.ref != 'refs/heads/master']}}
BUILD_DIR: alttab
BUILD_PACKAGE: alttab
- name: Download
run: |
copr-cli download-build --dest build "${{steps.build.outputs.build_id}}"
- name: Upload
uses: actions/upload-artifact@v3
with:
name: COPR Build
path: build/**