-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
39 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ name: Release Deployment | |
on: | ||
pull_request: | ||
push: | ||
tags: | ||
- v** | ||
branches: | ||
- 'fixing/**' | ||
|
||
permissions: | ||
contents: write | ||
|
@@ -56,35 +56,7 @@ jobs: | |
with: | ||
name: mycoverage_${{ runner.os }}_${{ matrix.php-versions }} | ||
path: coverage.tar.gz | ||
|
||
release: | ||
name: Release tag | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Create Release | ||
id: create-new-release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
body: | | ||
## [3.0.0] - 2025-01-30 | ||
### Add | ||
- Github Pages for PCOV Code Coverage php 8.2, 8.3 | ||
### Change | ||
- Fixing Deprecation Github Actions from v3 to v4 | ||
- Using php >= 8.2, for php below that use version 2 "composer require ekojs/otp:2.0.0" | ||
draft: false | ||
prerelease: false | ||
overwrite: true | ||
|
||
deploy: | ||
name: Deploy Github Pages | ||
|
@@ -100,17 +72,15 @@ jobs: | |
name: mycoverage_Linux_8.3 | ||
path: coverage.tar.gz | ||
overwrite: true | ||
|
||
- name: Checking file location | ||
run: | | ||
echo ${{ github.workspace }} | ||
- shell: bash | ||
run: | | ||
which tar && tar -xzvf coverage.tar.gz && cd build/logs/html && mv _js js && mv _css css && mv _icons icons && for x in $(grep . -irle '_js');do sed -i'' 's/_js/js/g' $x;done && for x in $(grep . -irle '_css');do sed -i'' 's/_css/css/g' $x;done && for x in $(grep . -irle '_icons');do sed -i'' 's/_icons/icons/g' $x;done | ||
pwd && which tar && tar -xzvf coverage.tar.gz && cd build/logs/html && mv _js js && mv _css css && mv _icons icons && for x in $(grep . -irle '_js');do sed -i'' 's/_js/js/g' $x;done && for x in $(grep . -irle '_css');do sed -i'' 's/_css/css/g' $x;done && for x in $(grep . -irle '_icons');do sed -i'' 's/_icons/icons/g' $x;done | ||
- name: List files in the repository | ||
run: | | ||
ls ${{ github.workspace }}/build/logs/html | ||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: build/logs/html |
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