Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ekojs committed May 9, 2022
1 parent 56d5cdb commit 66aeb7b
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Release Deployment

on:
push:
tags:
- v**
# pull_request:
# branches: [ master ]

permissions:
contents: write

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup PHP with PCOV
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
ini-values: pcov.directory=src
coverage: pcov

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ github.repository }}
- name: Install dependencies
run: composer install

# - name: Run test suite
# run: composer run test

- 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: |
## [1.0.0] - 2022-05-10
### Added
- Generate TOTP
- Generate HOTP
- Generate Backup Codes using BIP39 Spec
- Reverse Mnemonic/Backup Codes to md5(secret)
draft: false
prerelease: false

0 comments on commit 66aeb7b

Please sign in to comment.