4
4
push :
5
5
branches :
6
6
- main
7
- - refactor/release
7
+ - v1
8
8
9
9
jobs :
10
10
prepare :
@@ -41,32 +41,30 @@ jobs:
41
41
needs :
42
42
prepare
43
43
outputs :
44
- upload_url : ${{ steps.release.outputs.upload_url }}
45
44
releases_created : ${{ steps.release.outputs.releases_created }}
46
- permissions :
47
- contents : write
48
- issues : write
49
- pull-requests : write
50
- actions : write
45
+ tag_name : ${{ steps.release.outputs.tag_name }}
51
46
steps :
52
47
- name : Get installation token
53
- uses :
npalm/action- [email protected] .0
48
+ uses : philips-software/ app-token-action @v1.1.2
54
49
id : token
55
50
with :
56
- appId : ${{ secrets.FOREST_RELEASER_APP_ID }}
57
- appPrivateKeyBase64 : ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }}
58
- appInstallationType : repo
59
- appInstallationValue : ${{ github.repository }}
51
+ app_id : ${{ secrets.FOREST_RELEASER_APP_ID }}
52
+ app_base64_private_key : ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }}
53
+ auth_type : installation
54
+
55
+
56
+ - name : Extract branch name
57
+ id : branch
58
+ shell : bash
59
+ run : echo "name=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
60
60
61
- # bootstrap-sha and release-as needs to be removed after first release
62
61
- name : Release
63
62
id : release
64
63
uses : google-github-actions/release-please-action@5c07f8be172b1f6e90f9c35baf8184461b91b85f # ratchet:google-github-actions/release-please-action@v3
65
64
with :
66
- default-branch : main
65
+ default-branch : ${{ steps.branch.outputs.name }}
67
66
release-type : terraform-module
68
67
token : ${{ steps.token.outputs.token }}
69
- last-release-sha : b404332ff8b401a5a8958317a69b9f849b794a16
70
68
71
69
assets :
72
70
name : upload assets
@@ -81,18 +79,13 @@ jobs:
81
79
actions : read
82
80
83
81
steps :
82
+ - uses : actions/checkout@v3
84
83
- uses : actions/download-artifact@v3
85
84
with :
86
85
name : ${{ matrix.asset }}
87
- path : artifacts
88
86
89
87
- name : Upload Release Asset
90
- id : upload-release-asset
91
- uses : actions/upload-release-asset@v1
92
88
env :
93
89
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
94
- with :
95
- upload_url : ${{ needs.release.outputs.upload_url }}
96
- asset_path : artifacts/${{ matrix.asset }}.zip
97
- asset_name : ${{ matrix.asset }}.zip
98
- asset_content_type : application/zip
90
+ run :
91
+ gh release upload ${{ needs.release.outputs.tag_name }} ${{ matrix.asset }}.zip
0 commit comments