Clean up a bit
This commit is contained in:
parent
402037b1cb
commit
a3d89cb3a8
1 changed files with 15 additions and 16 deletions
39
.github/workflows/deploy-to-wordpress.org.yml
vendored
39
.github/workflows/deploy-to-wordpress.org.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Issue new release
|
name: Release Handler
|
||||||
|
|
||||||
# Action runs when a new release is published.
|
# Action runs when a new release is published.
|
||||||
on:
|
on:
|
||||||
|
@ -6,43 +6,42 @@ on:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tag:
|
release-new:
|
||||||
name: New release
|
name: Issue new release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build
|
- name: Build Plugin
|
||||||
run: |
|
run: |
|
||||||
composer install --no-dev --optimize-autoloader
|
composer install --no-dev --optimize-autoloader
|
||||||
composer run build
|
composer run build
|
||||||
cd dist
|
cd dist
|
||||||
|
|
||||||
- name: Create artifact
|
- 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 .
|
args: zip -X -r footnotes-${{ github.event.release.tag_name }}.zip .
|
||||||
|
|
||||||
#- name: WordPress Plugin Deploy
|
- name: Upload archive as artifact
|
||||||
# id: deploy
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: footnotes
|
||||||
|
path: dist/footnotes-${{ github.event.release.tag_name }}.zip
|
||||||
|
|
||||||
|
- name: Upload archive to release
|
||||||
|
uses: JasonEtco/upload-to-release@master
|
||||||
|
with:
|
||||||
|
args: dist/footnotes-${{ github.event.release.tag_name }}.zip application/zip
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
#- name: Deploy release to Wordpress.org
|
||||||
# uses: 10up/action-wordpress-plugin-deploy@stable
|
# uses: 10up/action-wordpress-plugin-deploy@stable
|
||||||
# with:
|
# with:
|
||||||
# generate-zip: true
|
# generate-zip: true
|
||||||
# env:
|
# env:
|
||||||
# SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
|
# SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
|
||||||
# SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
|
# SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: footnotes
|
|
||||||
path: dist/footnotes-${{ github.event.release.tag_name }}.zip
|
|
||||||
|
|
||||||
- name: Upload to release
|
|
||||||
uses: JasonEtco/upload-to-release@master
|
|
||||||
with:
|
|
||||||
args: dist/footnotes-${{ github.event.release.tag_name }}.zip application/zip
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
Reference in a new issue