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
|
||||
paths:
|
||||
- .gitea/workflows/build-hyprwayland-scanner.yml
|
||||
- "hyprwayland-scanner/**"
|
||||
- "hyprwayland-scanner.spec"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -24,19 +24,9 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6 # v5
|
||||
|
||||
- name: Build RPM
|
||||
- name: Build RPM and Upload
|
||||
uses: https://git.hydrosaber.com/hydros/build-rpm@main
|
||||
with:
|
||||
spec-file-path: ./hyprwayland-scanner/hyprwayland-scanner.spec
|
||||
|
||||
- name: Upload package
|
||||
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 \;
|
||||
spec-file-path: ./hyprwayland-scanner.spec
|
||||
repository-user: eriq12
|
||||
repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user