diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e1dd191..08a3850 100755 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,7 @@ on: env: PLUGIN_NAME: invoice-payment-for-woocommerce + PHP_VERSION: "7.4" jobs: release-build: @@ -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 @@ -36,7 +47,7 @@ jobs: uses: mathieudutour/github-tag-action@v6.0 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 @@ -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 }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ebddb3..49d40f3 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.txt b/README.txt index 9887747..e056c9a 100755 --- a/README.txt +++ b/README.txt @@ -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.