This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
footnotes/.github/workflows/deploy-to-wordpress.org.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

2021-03-10 14:56:51 +00:00
name: Deploy to WordPress.org
on:
release:
types: [published]
jobs:
tag:
name: New release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
2021-03-10 15:54:32 +00:00
- name: Build
run: |
composer install --no-dev --optimize-autoloader
composer run build
2021-03-10 15:54:32 +00:00
- name: Create artifact
uses: montudor/action-zip@stable
2021-03-10 14:56:51 +00:00
with:
2021-03-10 15:54:32 +00:00
args: zip -X -r dist/footnotes.zip dist
#- 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 }}
2021-03-10 14:56:51 +00:00
2021-03-10 15:54:32 +00:00
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: footnotes
path: dist/footnotes.zip
2021-03-10 15:56:28 +00:00
- name: Upload to release
2021-03-10 15:54:32 +00:00
uses: JasonEtco/upload-to-release@master
with:
args: dist/footnotes.zip application/zip
2021-03-10 14:56:51 +00:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}