Merge upload into composite action, move spec out of folder
Some checks failed
Build hyprwayland-scanner / Build and push image (push) Has been cancelled
Some checks failed
Build hyprwayland-scanner / Build and push image (push) Has been cancelled
This commit is contained in:
@@ -5,7 +5,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- .gitea/workflows/build-hyprwayland-scanner.yml
|
- .gitea/workflows/build-hyprwayland-scanner.yml
|
||||||
- "hyprwayland-scanner/**"
|
- "hyprwayland-scanner.spec"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -24,19 +24,9 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v6 # v5
|
uses: actions/checkout@v6 # v5
|
||||||
|
|
||||||
- name: Build RPM
|
- name: Build RPM and Upload
|
||||||
uses: https://git.hydrosaber.com/hydros/build-rpm@main
|
uses: https://git.hydrosaber.com/hydros/build-rpm@main
|
||||||
with:
|
with:
|
||||||
spec-file-path: ./hyprwayland-scanner/hyprwayland-scanner.spec
|
spec-file-path: ./hyprwayland-scanner.spec
|
||||||
|
repository-user: eriq12
|
||||||
- name: Upload package
|
repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }}
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
RPM_PACKAGE_TOKEN: ${{ secrets.RPM_PACKAGE_TOKEN }}
|
|
||||||
PACKAGE_GROUP: f43
|
|
||||||
run: |
|
|
||||||
find ./rpmbuild/RPMS/ -name "*.rpm" -type f \
|
|
||||||
-exec curl \
|
|
||||||
--user eriq12:${RPM_PACKAGE_TOKEN} \
|
|
||||||
--upload-file {} \
|
|
||||||
https://git.hydrosaber.com/api/packages/hydros/rpm/${PACKAGE_GROUP}/upload \;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user