Created
August 25, 2021 18:42
-
-
Save georgerussellpruitt/ef128a7ee6860527d53be08b58bc9865 to your computer and use it in GitHub Desktop.
example WP pipe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WordPress build with custom theme as repo | |
image: atlassian/default-image:2 | |
pipelines: | |
default: | |
- parallel: | |
- step: | |
name: 'Build WordPress' | |
script: | |
- echo "Build wordpress" | |
- zip -r theme.zip * | |
- mkdir my_theme | |
- unzip theme.zip -d my_theme/ | |
- ls -la my_theme/ | |
- git clone --branch 5.7.1 https://github.com/WordPress/WordPress | |
- mv my_theme/ WordPress/wp-content/themes/ | |
- ls -la WordPress/wp-content/themes/ | |
- ls -la WordPress/wp-content/themes/my_theme/ | |
- zip -r build.zip WordPress/ | |
- mkdir build | |
- cp build.zip build/ | |
artifacts: | |
- build/** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment