Skip to content

saucal/action-bundle-prepare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

BUNDLE: Prepare

This action is a bundle of other actions which simplifies the workflow definition process for our standard wp-content rooted projects.

Getting Started

This is the most common configuration for FTP deployments

- name: Prepare
  uses: saucal/action-bundle-prepare@v1
  with:
    slack-token: "${{ secrets.SLACK_BOT_TOKEN }}" # This should be preset as an organization level secret
    slack-channel: "XXXXXXXX"
    git-token: "${{ secrets.BOT_TOKEN }}"

If you're deploying to a WP VIP environment (GIT based) you'd do something like this

- name: Prepare
  uses: saucal/action-bundle-prepare@v1
  with:
    slack-token: "${{ secrets.SLACK_BOT_TOKEN }}" # This should be preset as an organization level secret
    slack-channel: "XXXXXXXX"
    git-token: "${{ secrets.BOT_TOKEN }}"
    repo: "wpcomvip/site-to-push"
    branch: "master"

Full options

- uses: saucal/action-bundle-prepare@v1
  with:
    # Folder to clone the source on
    source: "source"

    # Folder to clone the built repo on
    built: "built"

    # Token to use throughout the process
    git-token: ""

    # Built repo name to.
    #
    # current-built is a special key you can use to use a repo within your organization, with the built prefix.
    repo: "current-built"

    # Branch to push the built state to (on the built repo)
    branch: "${{ github.ref_name }}"

    # Slack token to use when posting to Slack
    slack-token: ""

    # Slack channel to post to use when posting to Slack
    slack-channel: ""

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •