Skip to content

Commit

Permalink
Fix deployment for PHP pacages (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
irshadahmad21 authored Jan 26, 2024
1 parent c1d022e commit c0fe1b4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .changeset/new-points-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@wpsocio/telegram-format-text": major
"@wpsocio/wptelegram-bot-api": major
"@wpsocio/wp-utils": major
---

First public release.
10 changes: 7 additions & 3 deletions .github/workflows/deploy-php-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,19 @@ jobs:

- name: Prepare
run: |
# Change dir to the package
cd ${{ fromJson(needs.details.outputs.result).path }}
# Create a temp dir and move the files to it
mkdir -p temp/${{ fromJson(needs.details.outputs.result).path }}
mkdir -p temp
# Move only the files that are needed
mv -t temp/${{ fromJson(needs.details.outputs.result).path }} composer.json src/ LICENSE README.md CHANGELOG.md .gitignore
mv -t temp/ composer.json src/ LICENSE README.md CHANGELOG.md .gitignore
# Reset pwd
cd -
- name: Deploy to repo
uses: manzoorwanijk/action-deploy-to-repo@v3
with:
src_dir: temp/${{ fromJson(needs.details.outputs.result).path }}
src_dir: ${{ fromJson(needs.details.outputs.result).path }}/temp
target_repo: ${{ fromJson(needs.details.outputs.result).repo }}
target_dir: "."
target_branch: main
Expand Down
2 changes: 1 addition & 1 deletion packages/php/telegram-format-text/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wpsocio/telegram-format-text",
"version": "1.0.0",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/php/wp-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wpsocio/wp-utils",
"version": "1.0.0",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/php/wptelegram-bot-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wpsocio/wptelegram-bot-api",
"version": "1.0.0",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
Expand Down

0 comments on commit c0fe1b4

Please sign in to comment.