Skip to content

Commit

Permalink
Revert build workflow to committing all files
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz committed Oct 16, 2023
1 parent be0bb87 commit 6f1eca5
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,29 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Trim the repo down to just the source and built files
run: |
rm -rf wp-content/mu-plugins/pub/locale-switcher/node_modules
rm -rf wp-content/plugins/wporg-learn/node_modules
rm -rf wp-content/themes/pub/wporg-learn-2020/node_modules
mv wp-content/mu-plugins/pub/locale-switcher $RUNNER_TEMP
mv wp-content/mu-plugins/pub/class-validator.php $RUNNER_TEMP
mv wp-content/mu-plugins/pub/locales.php $RUNNER_TEMP
mv wp-content/plugins/sensei-pro $RUNNER_TEMP
mv wp-content/plugins/wporg-learn $RUNNER_TEMP
mv wp-content/themes/pub/wporg-learn-2020 $RUNNER_TEMP
git rm -rfq .
rm -rf *
mv $RUNNER_TEMP/locale-switcher wp-content/mu-plugins/pub
mv $RUNNER_TEMP/class-validator.php wp-content/mu-plugins/pub
mv $RUNNER_TEMP/locales.php wp-content/mu-plugins/pub
mv $RUNNER_TEMP/sensei-pro wp-content/plugins
mv $RUNNER_TEMP/wporg-learn wp-content/plugins
mv $RUNNER_TEMP/wporg-learn-2020 wp-content/themes/pub
- name: Add all the files
run: |
git add -A
git add * --force
- name: Commit and push
uses: actions-js/push@a52398fac807b0c1e5f1492c969b477c8560a0ba # 1.3
Expand Down

0 comments on commit 6f1eca5

Please sign in to comment.