ci: add artifact passing
This commit is contained in:
parent
17b54556fb
commit
9705ea08ce
1 changed files with 20 additions and 4 deletions
24
.github/workflows/release-handler.yml
vendored
24
.github/workflows/release-handler.yml
vendored
|
@ -25,10 +25,16 @@ jobs:
|
||||||
- name: Build Plugin
|
- name: Build Plugin
|
||||||
run: |
|
run: |
|
||||||
composer run build
|
composer run build
|
||||||
|
|
||||||
- name: Rename dist/ folder
|
- name: Rename Plugin folder
|
||||||
run: |
|
run: |
|
||||||
mv dist/ footnotes/
|
mv dist/ footnotes/
|
||||||
|
|
||||||
|
- name: Upload Plugin artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: footnotes-${{ github.event.release.tag_name }}
|
||||||
|
path: footnotes
|
||||||
|
|
||||||
create_archive:
|
create_archive:
|
||||||
name: Create an archive for the release and add it to GitHub
|
name: Create an archive for the release and add it to GitHub
|
||||||
|
@ -36,17 +42,22 @@ jobs:
|
||||||
needs: build_plugin
|
needs: build_plugin
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Download Plugin artifact
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: footnotes-${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
- 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 footnotes-${{ github.event.release.tag_name }}.zip footnotes
|
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: 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:
|
||||||
|
@ -61,6 +72,11 @@ jobs:
|
||||||
needs: create_archive
|
needs: create_archive
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Download Plugin artifact
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: footnotes-${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
- name: Deploy release to Wordpress.org
|
- name: Deploy release to Wordpress.org
|
||||||
id: deploy
|
id: deploy
|
||||||
uses: 10up/action-wordpress-plugin-deploy@stable
|
uses: 10up/action-wordpress-plugin-deploy@stable
|
||||||
|
|
Reference in a new issue