Skip to content

Commit 63591ec

Browse files
committed
merge artifacts
1 parent c0a5ddb commit 63591ec

File tree

2 files changed

+27
-25
lines changed

2 files changed

+27
-25
lines changed

.github/workflows/devbuild.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
ZEF_VERSION: ${{ github.event.inputs.zef-version }}
5050
steps:
5151
- name: Checkout repository
52-
uses: actions/checkout@v3
52+
uses: actions/checkout@v4
5353
with:
5454
fetch-depth: 0
5555
- name: Download sources

.github/workflows/package.yml

+26-24
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: package
22
on: [push, pull_request]
33
jobs:
44
get-sources:
5-
runs-on: ubuntu-20.04
5+
runs-on: ubuntu-latest
66
steps:
77
- name: Checkout repository
8-
uses: actions/checkout@v3
8+
uses: actions/checkout@v4
99
with:
1010
fetch-depth: 0
1111
- name: Download tools and sources
@@ -45,7 +45,7 @@ jobs:
4545
- image: ubuntu:devel
4646
experimental: true
4747
continue-on-error: ${{ matrix.experimental }}
48-
runs-on: ubuntu-20.04
48+
runs-on: ubuntu-latest
4949
container:
5050
image: ${{ matrix.image }}
5151
options: --security-opt seccomp=unconfined
@@ -77,36 +77,38 @@ jobs:
7777
# Forks don't need to release packages, just have the artifacts available
7878
if: github.repository_owner == 'nxadm' && startsWith(github.ref, 'refs/tags/v')
7979
needs: build-and-package
80-
runs-on: ubuntu-20.04
80+
runs-on: ubuntu-latest
8181
steps:
8282
- name: Download packages
8383
uses: actions/download-artifact@v4
8484
with:
85-
name: packages-*
8685
path: packages
86+
pattern: packages-*
87+
merge-multiple: true
88+
- run: ls -R packages
8789
- name: Upload to Github Releases
8890
uses: ncipollo/release-action@v1
8991
with:
9092
artifacts: "packages/*.sha512,packages/*.apk,packages/*.deb,packages/*.rpm,packages/*.tar.gz"
9193
token: ${{ secrets.GITHUB_TOKEN }}
9294
draft: true
9395
body: "For apk/deb/rpm packages, you can use the rakudo-pkg [OS repositories](https://github.com/nxadm/rakudo-pkg#os-repositories)."
94-
release-to-repos:
95-
needs: release-to-github
96-
runs-on: ubuntu-20.04
97-
env:
98-
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
99-
steps:
100-
- name: Retrieve sources
101-
uses: actions/download-artifact@v4
102-
with:
103-
name: sources
104-
- name: Download packages
105-
uses: actions/download-artifact@v4
106-
with:
107-
name: packages-*
108-
path: packages
109-
- name: Upload to repository
110-
run: |
111-
chmod +x actions/*
112-
actions/upload.sh packages
96+
# release-to-repos:
97+
# needs: release-to-github
98+
# runs-on: ubuntu-latest
99+
# env:
100+
# CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
101+
# steps:
102+
# - name: Retrieve sources
103+
# uses: actions/download-artifact@v4
104+
# with:
105+
# name: sources
106+
# - name: Download packages
107+
# uses: actions/download-artifact@v4
108+
# with:
109+
# name: packages-*
110+
# path: packages
111+
# - name: Upload to repository
112+
# run: |
113+
# chmod +x actions/*
114+
# actions/upload.sh packages

0 commit comments

Comments
 (0)