Skip to content

Commit

Permalink
Create wp-text-domain.md
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsridharan committed May 27, 2019
1 parent 4aaedcd commit a1ebe5d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/actions/wp-text-domain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
path: '/wp-text-domain'
title: 'WP Text Domain - Github Action'
github_url: 'https://github.com/wpapps/wp-text-domain'
author: 'Varun Sridharan'
tags: ['wordpress']
subtitle: 'Add Text Domain To Your WordPress Plugin / Themes On The Fly'
---

<p align="center">
<img src="https://user-images.githubusercontent.com/1039236/51209809-253a8a80-1937-11e9-9dc1-0267bcb74390.png" />
</p>

<p align="center">
<a href="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/wpapps/wp-text-domain"><img src="https://img.shields.io/github/license/wpapps/wp-text-domain.svg" alt="Licence"></a>
<a href="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/wpapps/wp-text-domain"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square" alt="PRs"></a>
</p>

# WP Text Domain - ***Github Action***
This Action Adds TextDomain To your wordpress Plugin / Theme based on the content inside Github Repo

## Configuration
* `DOMAIN` - Slug of your WordPress Theme / Plugin Slug **Required**
* `GITHUB_TOKEN` - you do not need to generate one but you do have to explicitly make it available to the Action

## Example Workflow File
```
workflow "Deploy" {
resolves = ["WP Text Domain"]
on = "push"
}
action "WP Text Domain" {
uses = "wpapps/wp-text-domain@master"
env = {
DOMAIN = "your-textdomain"
}
secrets = ["GITHUB_TOKEN"]
}
```

0 comments on commit a1ebe5d

Please sign in to comment.