Skip to content

Reusable WordPress workflows samples, for automatically deploy themes and/or plugins, for linting, for generate releases etc.

License

Notifications You must be signed in to change notification settings

sarahcssiqueira/reusable-wp-workflows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reusable WordPress Workflows

Project Status: Active – The project has reached a stable, usable state and is being actively developed. License: MIT Support Level

Reusable WordPress Workflows to increase our productivity instead of deploying in the "cowboy" style through FTP.

Check for WordPress Coding Standards

Deploy

Release

Tests

[To do]

Usage

Copy and paste the .yml file more suitable for your needs in the .github/workflows folder of your repository. If you still don't have a .github/workflows folder, create one.

Change the paths and save the secrets on the appropriate environment.

Triggers

The most common trigger for the workflows on this repository is run after a push to the master branch:

on:
  push:
    branches: [master]

But as you can see, for the create release workflow, it is triggered when a tag is added to the branch.

on:
  push:
    tags:
      - v*

I would recommend using on push tag trigger for your deployments workflows too, so the deployed version of your project will always reflect the latest release of your project. For more details about Workflow triggers, please refer to GitHub documentation.

Environments

You can configure custom environments according to your project needs:

jobs:
  deploy:
    name: Deploy WordPress Theme
    runs-on: ubuntu-20.04
    environment: production

For more details about setting GitHub environments, please refer to GitHub documentation

Contributing

Contribute to adding new workflows samples for other needs or other needs through pull requests, inform about issues or even add some improvements ideas.

License

This repository is licensed under the MIT license.

About

Reusable WordPress workflows samples, for automatically deploy themes and/or plugins, for linting, for generate releases etc.

Topics

Resources

License

Stars

Watchers

Forks