Skip to content

using .distignore (#22) #7

using .distignore (#22)

using .distignore (#22) #7

Workflow file for this run

name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
# 10up/action-wordpress-plugin-deploy is not adding the vendor folder due to .gitignore so we need to add it manually
# also uses their user to commit the vendor folder
# https://github.com/10up/action-wordpress-plugin-deploy/blob/408b966c84f07de4f648a0fd04f103ba72b18590/deploy.sh#L113
run: composer install --no-dev --optimize-autoloader
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
files: ${{github.workspace}}/${{ github.event.repository.name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}