Skip to content

Commit

Permalink
Remove our build and tag workflow and add our build steps into our de…
Browse files Browse the repository at this point in the history
…ploy workflow
  • Loading branch information
dkotter committed Nov 12, 2024
1 parent 9e0ebd1 commit 1813be6
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 1813be6

Please sign in to comment.