Skip to content

Commit

Permalink
Merge pull request #315 from 10up/fix/build-step
Browse files Browse the repository at this point in the history
Fix our build step so it includes needed dependencies
  • Loading branch information
dkotter authored Nov 12, 2024
2 parents 9e0ebd1 + 1813be6 commit 5c97303
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 41 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/build-and-tag.yml

This file was deleted.

28 changes: 25 additions & 3 deletions .github/workflows/push-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,34 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup node version and npm cache
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Install Node dependencies
run: npm install

- name: Build plugin
run: npm run build

- name: WordPress Plugin Deploy
if: "! github.event.release.prerelease"
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}

- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ github.workspace }}/${{ github.event.repository.name }}.zip
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip

0 comments on commit 5c97303

Please sign in to comment.