Skip to content

Commit

Permalink
Uploading plugin test results. building release in build and just usi…
Browse files Browse the repository at this point in the history
…ng it in tagged release
  • Loading branch information
mrinc committed Oct 9, 2024
1 parent cd6dab6 commit d5c559b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,28 @@ jobs:
chmod +x build.sh
./build.sh ${{ steps.determine_version.outputs.NEW_VERSION }}
- name: Create release artifact
run: |
chmod +x release.sh
./release.sh ${{ steps.get_version.outputs.VERSION }}
- name: Run plugin check
uses: wordpress/plugin-check-action@v1
with:
build-dir: build/betterportal-theme-embedded

- name: Upload plugin test results
uses: actions/upload-artifact@v4
with:
name: plugin-test-results
path: /home/runner/work/_temp/plugin-check-results.txt

- name: Upload release artifact
uses: actions/upload-artifact@v4
with:
name: release-artifact
path: dist/betterportal-theme-embedded-v$VERSION.zip

- name: Create and push new tag
if: success()
run: |
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,11 @@ jobs:
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "VERSION_WITH_V=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Build plugin
run: |
chmod +x build.sh
./build.sh ${{ steps.get_version.outputs.VERSION }}
- name: Create release artifact
run: |
chmod +x release.sh
./release.sh ${{ steps.get_version.outputs.VERSION }}
- name: Download release artifact
uses: actions/download-artifact@v4
with:
name: release-artifact
path: dist/betterportal-theme-embedded-v$VERSION.zip

- name: Create Release
if: success()
Expand Down

0 comments on commit d5c559b

Please sign in to comment.