4242
4343 - name : Pull dependencies
4444 run : yarn
45-
45+ - name : Build
46+ run : yarn build
4647 - name : Sign plugin
4748 run : yarn sign
4849 env :
@@ -109,41 +110,13 @@ jobs:
109110 # #########################
110111 # Release Specific Stuff #
111112 # #########################
112- - name : Read changelog
113- id : changelog
114- run : |
115- awk '/^## / {s++} s == 1 {print}' ${{ steps.metadata.outputs.plugin-id }}/CHANGELOG.md > release_notes.md
116- echo "::set-output name=path::release_notes.md"
117-
118- - name : Create tag
119- uses : actions/github-script@v5
120- with :
121- script : |
122- github.rest.git.createRef({
123- owner: context.repo.owner,
124- repo: context.repo.repo,
125- ref: 'refs/tags/v${{ steps.metadata.outputs.plugin-version }}',
126- sha: context.sha
127- })
128-
129- - name : Create release
130- id : create_release
131- uses : actions/create-release@v1
132- env :
133- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
134- with :
135- tag_name : ' v${{ steps.metadata.outputs.plugin-version }}'
136- release_name : Release ${{ steps.metadata.outputs.plugin-version }}
137- body_path : ${{ steps.changelog.outputs.path }}
138- draft : false
139-
140113 - name : Add plugin to release
141114 id : upload-plugin-asset
142115 uses : actions/upload-release-asset@v1
143116 env :
144117 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
145118 with :
146- upload_url : ${{ steps.create_release.outputs .upload_url }}
119+ upload_url : ${{ github.event.release .upload_url }}
147120 asset_path : ./${{ steps.metadata.outputs.archive }}
148121 asset_name : ${{ steps.metadata.outputs.archive }}
149122 asset_content_type : application/zip
@@ -154,7 +127,7 @@ jobs:
154127 env :
155128 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
156129 with :
157- upload_url : ${{ steps.create_release.outputs .upload_url }}
130+ upload_url : ${{ github.event.release .upload_url }}
158131 asset_path : ./${{ steps.metadata.outputs.archive-checksum }}
159132 asset_name : ${{ steps.metadata.outputs.archive-checksum }}
160133 asset_content_type : text/plain
0 commit comments