Skip to content

Commit

Permalink
Merge pull request #97 from LinkNacional/dev
Browse files Browse the repository at this point in the history
1.7.2 Fix build script
  • Loading branch information
emanuellopess authored Oct 30, 2024
2 parents 933d7f4 + 5bec580 commit 1a4e6d7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

env:
PLUGIN_NAME: invoice-payment-for-woocommerce
PHP_VERSION: "7.4"

jobs:
release-build:
Expand All @@ -16,9 +17,19 @@ jobs:
steps:
- uses: actions/checkout@v3

# Run composer install and generate vendor
- name: Run composer install
uses: php-actions/composer@v6
with:
php_version: ${{ env.PHP_VERSION }}
working_dir: "."
args: --ignore-platform-reqs
command: install
dev: no

# Add plugin files to a root directory
- name: Make plugin root directory
run: "mkdir $PLUGIN_NAME && mv -t ./$PLUGIN_NAME ./admin ./includes ./languages ./public *.txt *.php && ls -lah"
run: "mkdir $PLUGIN_NAME && mv -t ./$PLUGIN_NAME ./admin ./includes ./languages ./public *.txt *.php && cp -r ./vendor ./${{env.PLUGIN_NAME}}/vendor && find ./${{env.PLUGIN_NAME}} -type f -exec chmod 0644 {} + && find ./${{env.PLUGIN_NAME}} -type d -exec chmod 0755 {} + && ls -lah"

# Compact plugin as .zip
- name: Archive Release
Expand All @@ -36,7 +47,7 @@ jobs:
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: "1.7.2" # // TODO update tag on each release
custom_tag: '1.7.2'

# Generate new release
- name: Generate new Release
Expand All @@ -47,4 +58,4 @@ jobs:
commit: "main"
draft: true
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 1.7.2 - 25/10/2024
# 1.7.2 - 30/10/2024
* Correção de erros em PDFs com imagens;
* Correção de erros de traduções.

Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ The Invoice Payment for WooCommerce plugin is now live and working.

== Changelog ==

= 1.7.2 = *25/10/2024*
= 1.7.2 = *30/10/2024*
* Fix errors in PDFs with images;
* Fix translation errors.

Expand Down

0 comments on commit 1a4e6d7

Please sign in to comment.