mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-04-19 03:05:55 +02:00
Upload and download artifacts
This commit is contained in:
parent
790b5e0fad
commit
e60be4894d
93
.github/workflows/Release.yml
vendored
93
.github/workflows/Release.yml
vendored
@ -53,17 +53,17 @@ jobs:
|
|||||||
echo "::set-output name=SRPM::${NEW_SRPM}"
|
echo "::set-output name=SRPM::${NEW_SRPM}"
|
||||||
echo "::set-output name=RPM::${NEW_RPM}"
|
echo "::set-output name=RPM::${NEW_RPM}"
|
||||||
|
|
||||||
# # See: https://github.com/actions/upload-artifact
|
# See: https://github.com/actions/upload-artifact
|
||||||
# - name: Save RPM as artifact
|
- name: Save RPM as artifact
|
||||||
# uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
# with:
|
with:
|
||||||
# name: cc-metric-collector RPM for AlmaLinux 8.5
|
name: cc-metric-collector RPM for AlmaLinux 8.5
|
||||||
# path: ${{ steps.rpmbuild.outputs.RPM }}
|
path: ${{ steps.rpmrename.outputs.RPM }}
|
||||||
# - name: Save SRPM as artifact
|
- name: Save SRPM as artifact
|
||||||
# uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
# with:
|
with:
|
||||||
# name: cc-metric-collector SRPM for AlmaLinux 8.5
|
name: cc-metric-collector SRPM for AlmaLinux 8.5
|
||||||
# path: ${{ steps.rpmbuild.outputs.SRPM }}
|
path: ${{ steps.rpmrename.outputs.SRPM }}
|
||||||
|
|
||||||
# # See: https://github.com/softprops/action-gh-release
|
# # See: https://github.com/softprops/action-gh-release
|
||||||
# - name: Release
|
# - name: Release
|
||||||
@ -107,17 +107,17 @@ jobs:
|
|||||||
id: rpmbuild
|
id: rpmbuild
|
||||||
run: make RPM
|
run: make RPM
|
||||||
|
|
||||||
# # See: https://github.com/actions/upload-artifact
|
# See: https://github.com/actions/upload-artifact
|
||||||
# - name: Save RPM as artifact
|
- name: Save RPM as artifact
|
||||||
# uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
# with:
|
with:
|
||||||
# name: cc-metric-collector RPM for UBI 8
|
name: cc-metric-collector RPM for UBI 8
|
||||||
# path: ${{ steps.rpmbuild.outputs.RPM }}
|
path: ${{ steps.rpmbuild.outputs.RPM }}
|
||||||
# - name: Save SRPM as artifact
|
- name: Save SRPM as artifact
|
||||||
# uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
# with:
|
with:
|
||||||
# name: cc-metric-collector SRPM for UBI 8
|
name: cc-metric-collector SRPM for UBI 8
|
||||||
# path: ${{ steps.rpmbuild.outputs.SRPM }}
|
path: ${{ steps.rpmbuild.outputs.SRPM }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -126,22 +126,35 @@ jobs:
|
|||||||
needs: [AlmaLinux-RPM-build, UBI-8-RPM-build]
|
needs: [AlmaLinux-RPM-build, UBI-8-RPM-build]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Print files
|
- name: Download AlmaLinux 8.5 RPM
|
||||||
run: |
|
uses: actions/download-artifact@v2
|
||||||
echo "${{ needs.AlmaLinux-RPM-build.outputs.RPM }}"
|
|
||||||
ls "${{ needs.AlmaLinux-RPM-build.outputs.RPM }}"
|
|
||||||
echo "${{ needs.AlmaLinux-RPM-build.outputs.SRPM }}"
|
|
||||||
echo "${{ needs.UBI-8-RPM-build.outputs.RPM }}"
|
|
||||||
ls "${{ needs.UBI-8-RPM-build.outputs.RPM }}"
|
|
||||||
echo "${{ needs.UBI-8-RPM-build.outputs.SRPM }}"
|
|
||||||
# See: https://github.com/softprops/action-gh-release
|
|
||||||
- name: Release
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
|
||||||
with:
|
with:
|
||||||
name: cc-metric-collector-${{github.ref_name}}
|
name: cc-metric-collector RPM for AlmaLinux 8.5
|
||||||
files: |
|
- name: Download AlmaLinux 8.5 SRPM
|
||||||
${{ needs.AlmaLinux-RPM-build.outputs.RPM }}
|
uses: actions/download-artifact@v2
|
||||||
${{ needs.AlmaLinux-RPM-build.outputs.SRPM }}
|
with:
|
||||||
${{ needs.UBI-8-RPM-build.outputs.RPM }}
|
name: cc-metric-collector SRPM for AlmaLinux 8.5
|
||||||
${{ needs.UBI-8-RPM-build.outputs.SRPM }}
|
|
||||||
|
- name: Download UBI 8 RPM
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: cc-metric-collector RPM for UBI 8
|
||||||
|
- name: Download UBI 8 SRPM
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: cc-metric-collector SRPM for UBI 8
|
||||||
|
|
||||||
|
- name: Check files
|
||||||
|
run: ls *
|
||||||
|
|
||||||
|
# # See: https://github.com/softprops/action-gh-release
|
||||||
|
# - name: Release
|
||||||
|
# uses: softprops/action-gh-release@v1
|
||||||
|
# if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
# with:
|
||||||
|
# name: cc-metric-collector-${{github.ref_name}}
|
||||||
|
# files: |
|
||||||
|
# ${{ needs.AlmaLinux-RPM-build.outputs.RPM }}
|
||||||
|
# ${{ needs.AlmaLinux-RPM-build.outputs.SRPM }}
|
||||||
|
# ${{ needs.UBI-8-RPM-build.outputs.RPM }}
|
||||||
|
# ${{ needs.UBI-8-RPM-build.outputs.SRPM }}
|
Loading…
x
Reference in New Issue
Block a user