1
- name : Collection
1
+ name : Release
2
2
3
3
on :
4
4
push :
5
5
branches :
6
6
- main
7
7
8
8
jobs :
9
- collection :
10
- name : Collection
9
+ release :
10
+ name : Release
11
11
runs-on : ubuntu-24.04
12
12
if : github.event.head_commit.message == 'Release'
13
13
steps :
14
14
15
- - name : Notify Slack of starting
15
+ - name : Notify Slack - Starting
16
16
uses : act10ns/slack@v2
17
17
with :
18
18
status : starting
@@ -23,59 +23,57 @@ jobs:
23
23
- name : Checkout
24
24
uses : actions/checkout@v4
25
25
26
- - name : Create ansible galaxy token
26
+ - name : Set ansible galaxy token
27
27
run : |
28
28
cat << EOF > ./galaxy_token
29
29
token: ${{ secrets.ANSIBLE_GALAXY_TOKEN }}
30
30
EOF
31
31
32
- - name : Env
33
- run : |
34
- cp .env .env.local
35
-
36
32
- name : Set up system
37
33
uses : ./.manala/github/system/setup
38
34
39
- - name : Retrieve version from galaxy.yml
40
- id : version
35
+ - name : Get metadata from galaxy.yml
36
+ id : metadata
41
37
42
38
with :
43
39
file : ./galaxy.yml
44
- version : version
45
40
46
- - name : Build Collection
41
+ - name : Build
42
+ id : build
47
43
run : |
48
- make collection. build
44
+ make build VERBOSE=1
49
45
50
- - name : Create artifact from collection build
46
+ - name : Upload build artifact
51
47
uses : actions/upload-artifact@v4
52
48
with :
53
- path : ./manala-path-${{ steps.version .outputs.version }}.tar.gz
54
- name : manala-path-${{ steps.version .outputs.version }}
49
+ path : ./manala-path-${{ steps.metadata .outputs.version }}.tar.gz
50
+ name : manala-path-${{ steps.metadata .outputs.version }}
55
51
retention-days : 1
56
52
57
- - name : Publish Collection
53
+ - name : Publish
54
+ id : publish
58
55
run : |
59
- make collection. publish
56
+ make publish VERBOSE=1
60
57
61
- - name : Get Changelog Entry
58
+ - name : Get Changelog entry
62
59
id : changelog
63
60
uses : mindsers/changelog-reader-action@v2
64
61
with :
65
62
path : ./CHANGELOG.md
66
- version : ${{ steps.version .outputs.version }}
63
+ version : ${{ steps.metadata .outputs.version }}
67
64
68
- - name : Create Github Release
65
+ - name : Create GitHub Release
66
+ id : release
69
67
uses : ncipollo/release-action@v1
70
68
with :
71
- name : manala-path ${{ steps.version .outputs.version }}
72
- tag : ${{ steps.version .outputs.version }}
69
+ name : manala-path ${{ steps.metadata .outputs.version }}
70
+ tag : ${{ steps.metadata .outputs.version }}
73
71
body : ${{ steps.changelog.outputs.changes }}
74
- artifacts : ./manala-path-${{ steps.version .outputs.version }}.tar.gz
72
+ artifacts : ./manala-path-${{ steps.metadata .outputs.version }}.tar.gz
75
73
token : ${{ secrets.GITHUB_TOKEN }}
76
74
skipIfReleaseExists : true
77
75
78
- - name : Notify Slack of job status
76
+ - name : Notify Slack - Status
79
77
uses : act10ns/slack@v2
80
78
with :
81
79
status : ${{ job.status }}
0 commit comments