Update the github action to make it work with the prod.dist folder better
This commit is contained in:
parent
d28f4af088
commit
cf800f0a51
1 changed files with 2 additions and 2 deletions
4
.github/workflows/draft-release.yaml
vendored
4
.github/workflows/draft-release.yaml
vendored
|
|
@ -39,7 +39,7 @@ jobs:
|
||||||
run: cat prod.dist/module.temp.json | jq -r --tab '.download = "https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.version }}/release.zip"' > prod.dist/module.json
|
run: cat prod.dist/module.temp.json | jq -r --tab '.download = "https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.version }}/release.zip"' > prod.dist/module.json
|
||||||
|
|
||||||
- name: Create the zip
|
- name: Create the zip
|
||||||
run: zip -r release.zip prod.dist/*
|
run: cd prod.dist; zip -r release.zip *
|
||||||
|
|
||||||
- name: Create the draft release
|
- name: Create the draft release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
|
|
@ -48,4 +48,4 @@ jobs:
|
||||||
commit: ${{ github.ref }}
|
commit: ${{ github.ref }}
|
||||||
draft: true
|
draft: true
|
||||||
generateReleaseNotes: true
|
generateReleaseNotes: true
|
||||||
artifacts: "release.zip,prod.dist/module.json"
|
artifacts: "prod.dist/release.zip,prod.dist/module.json"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue