Skip to content

Commit

Permalink
testing deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ekojs committed Jan 30, 2025
1 parent 7acda76 commit ca3f187
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 39 deletions.
46 changes: 8 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Release Deployment
on:
pull_request:
push:
tags:
- v**
branches:
- 'fixing/**'

permissions:
contents: write
Expand Down Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ OTP Library

TOTP and HOTP Library with backup codes, compatible with google authenticator. Compatible with PHP >= 7.4.13.

[![Build Status](https://www.travis-ci.com/ekojs/ejsotp.svg?branch=master)](https://www.travis-ci.com/ekojs/ejsotp)
[![Build Status](https://github.com/ekojs/ejsotp/actions/workflows/release.yml/badge.svg)](http://ekojunaidisalam.com/ejsotp/)
[![Coverage Status](https://coveralls.io/repos/ekojs/ejsotp/badge.svg?branch=master)](https://coveralls.io/r/ekojs/ejsotp?branch=master)
[![Latest Stable Version](http://poser.pugx.org/ekojs/otp/v)](https://packagist.org/packages/ekojs/otp) [![Total Downloads](http://poser.pugx.org/ekojs/otp/downloads)](https://packagist.org/packages/ekojs/otp) [![Latest Unstable Version](http://poser.pugx.org/ekojs/otp/v/unstable)](https://packagist.org/packages/ekojs/otp) [![License](http://poser.pugx.org/ekojs/otp/license)](https://packagist.org/packages/ekojs/otp) [![PHP Version Require](http://poser.pugx.org/ekojs/otp/require/php)](https://packagist.org/packages/ekojs/otp)

Expand Down

0 comments on commit ca3f187

Please sign in to comment.