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