Merge pull request #131 from markcheret/rename-release-archive
ci: rename folder during release process
This commit is contained in:
commit
8bab805bab
1 changed files with 7 additions and 3 deletions
10
.github/workflows/release-handler.yml
vendored
10
.github/workflows/release-handler.yml
vendored
|
@ -22,21 +22,25 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
composer run build -- -y
|
composer run build -- -y
|
||||||
|
|
||||||
|
- name: Rename dist/ folder
|
||||||
|
run: |
|
||||||
|
mv dist/ footnotes/
|
||||||
|
|
||||||
- name: Create release archive
|
- name: Create release archive
|
||||||
uses: montudor/action-zip@v0.1.0
|
uses: montudor/action-zip@v0.1.0
|
||||||
with:
|
with:
|
||||||
args: zip -X -r dist/footnotes-${{ github.event.release.tag_name }}.zip dist
|
args: zip -X -r footnotes-${{ github.event.release.tag_name }}.zip footnotes
|
||||||
|
|
||||||
- name: Upload archive as artifact
|
- name: Upload archive as artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: footnotes-${{ github.event.release.tag_name }}
|
name: footnotes-${{ github.event.release.tag_name }}
|
||||||
path: dist/footnotes-${{ github.event.release.tag_name }}.zip
|
path: footnotes-${{ github.event.release.tag_name }}.zip
|
||||||
|
|
||||||
- name: Upload archive to release
|
- name: Upload archive to release
|
||||||
uses: JasonEtco/upload-to-release@master
|
uses: JasonEtco/upload-to-release@master
|
||||||
with:
|
with:
|
||||||
args: dist/footnotes-${{ github.event.release.tag_name }}.zip application/zip
|
args: footnotes-${{ github.event.release.tag_name }}.zip application/zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
Reference in a new issue