@@ -2,10 +2,10 @@ name: package
2
2
on : [push, pull_request]
3
3
jobs :
4
4
get-sources :
5
- runs-on : ubuntu-20.04
5
+ runs-on : ubuntu-latest
6
6
steps :
7
7
- name : Checkout repository
8
- uses : actions/checkout@v3
8
+ uses : actions/checkout@v4
9
9
with :
10
10
fetch-depth : 0
11
11
- name : Download tools and sources
45
45
- image : ubuntu:devel
46
46
experimental : true
47
47
continue-on-error : ${{ matrix.experimental }}
48
- runs-on : ubuntu-20.04
48
+ runs-on : ubuntu-latest
49
49
container :
50
50
image : ${{ matrix.image }}
51
51
options : --security-opt seccomp=unconfined
@@ -77,36 +77,38 @@ jobs:
77
77
# Forks don't need to release packages, just have the artifacts available
78
78
if : github.repository_owner == 'nxadm' && startsWith(github.ref, 'refs/tags/v')
79
79
needs : build-and-package
80
- runs-on : ubuntu-20.04
80
+ runs-on : ubuntu-latest
81
81
steps :
82
82
- name : Download packages
83
83
uses : actions/download-artifact@v4
84
84
with :
85
- name : packages-*
86
85
path : packages
86
+ pattern : packages-*
87
+ merge-multiple : true
88
+ - run : ls -R packages
87
89
- name : Upload to Github Releases
88
90
uses : ncipollo/release-action@v1
89
91
with :
90
92
artifacts : " packages/*.sha512,packages/*.apk,packages/*.deb,packages/*.rpm,packages/*.tar.gz"
91
93
token : ${{ secrets.GITHUB_TOKEN }}
92
94
draft : true
93
95
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