diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..77140dd --- /dev/null +++ b/.github/workflows/release.yml @@ -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