Append tag name to plugin zip
This commit is contained in:
parent
f5a5e2104b
commit
402037b1cb
1 changed files with 6 additions and 4 deletions
10
.github/workflows/deploy-to-wordpress.org.yml
vendored
10
.github/workflows/deploy-to-wordpress.org.yml
vendored
|
@ -1,4 +1,6 @@
|
||||||
name: Deploy to WordPress.org
|
name: Issue new release
|
||||||
|
|
||||||
|
# Action runs when a new release is published.
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
@ -21,7 +23,7 @@ jobs:
|
||||||
- name: Create artifact
|
- name: Create artifact
|
||||||
uses: montudor/action-zip@v0.1.0
|
uses: montudor/action-zip@v0.1.0
|
||||||
with:
|
with:
|
||||||
args: zip -X -r footnotes.zip .
|
args: zip -X -r footnotes-${{ github.event.release.tag_name }}.zip .
|
||||||
|
|
||||||
#- name: WordPress Plugin Deploy
|
#- name: WordPress Plugin Deploy
|
||||||
# id: deploy
|
# id: deploy
|
||||||
|
@ -36,11 +38,11 @@ jobs:
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: footnotes
|
name: footnotes
|
||||||
path: dist/footnotes.zip
|
path: dist/footnotes-${{ github.event.release.tag_name }}.zip
|
||||||
|
|
||||||
- name: Upload to release
|
- name: Upload to release
|
||||||
uses: JasonEtco/upload-to-release@master
|
uses: JasonEtco/upload-to-release@master
|
||||||
with:
|
with:
|
||||||
args: dist/footnotes.zip application/zip
|
args: dist/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