fix internationalization according to wp standards (#78) #63
Workflow file for this run
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
name: Create or Update Release | |
on: | |
push: | |
tags: | |
- "v*" | |
permissions: | |
contents: write | |
jobs: | |
update-version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PAT }} | |
- name: Update version in kalpa-mmg-checkout.php | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "Carl Handy" | |
git fetch --all | |
git checkout main | |
git pull origin main | |
chmod +x .github/scripts/update-version.sh | |
./.github/scripts/update-version.sh | |
git push origin main | |
build: | |
needs: update-version | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Fetch latest changes | |
run: | | |
git fetch --all | |
git checkout main | |
git pull origin main | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "7.4" | |
- name: Install Composer dependencies | |
run: composer install --no-dev --optimize-autoloader | |
- name: Zip project | |
run: zip -r kalpa-mmg-checkout.zip kalpa-mmg-checkout.php LICENSE.txt uninstall.php vendor/* README.txt admin/* public/* includes/* | |
- name: Setup GitHub CLI | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ">=1.18.0" | |
- run: go install github.com/cli/cli/v2/cmd/gh@latest | |
- name: Upload Release Asset | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release upload ${{ github.ref_name }} ./kalpa-mmg-checkout.zip --clobber |