From 0ba638c0e6a4a60135bd4815b33748960fefc9cd Mon Sep 17 00:00:00 2001 From: Alexander Shabunevich Date: Sun, 2 Jun 2024 18:22:47 +0300 Subject: [PATCH] cicd: enable deploy and change repro link to codepen --- .github/ISSUE_TEMPLATE/bug_report.md | 4 +- .github/workflows/build.yml | 64 ++++++++++++++-------------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 8bb57f6..3a7fbd5 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -17,5 +17,5 @@ Which steps do we need to take to reproduce the problem? ### Reproduction link -Link to online sandbox with reproduction code. -You could use these as starters: [vue](https://stackblitz.com/edit/vue-maska) / [vanilla](https://stackblitz.com/edit/js-maska) +Link to online sandbox (like https://codepen.io) with mimimal reproduction code. +You could use this as starter: [vue](https://codepen.io/beholdr/pen/qBGrLjd) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 74e0cb2..3119a7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,41 +32,41 @@ jobs: with: cmd: 'jq .total.statements.pct coverage/coverage-summary.json' - # badge: - # runs-on: ubuntu-latest - # needs: build + badge: + runs-on: ubuntu-latest + needs: build - # steps: - # - name: Create badge - # uses: schneegans/dynamic-badges-action@v1.6.0 - # with: - # auth: ${{ secrets.GIST_SECRET }} - # gistID: 7f2a04de5e494f9a3820832520ee2562 - # filename: badge.json - # label: Code Coverage - # message: ${{ needs.build.outputs.coverage }}% - # valColorRange: ${{ needs.build.outputs.coverage }} - # maxColorRange: 100 - # minColorRange: 0 + steps: + - name: Create badge + uses: schneegans/dynamic-badges-action@v1.6.0 + with: + auth: ${{ secrets.GIST_SECRET }} + gistID: 7f2a04de5e494f9a3820832520ee2562 + filename: badge.json + label: Code Coverage + message: ${{ needs.build.outputs.coverage }}% + valColorRange: ${{ needs.build.outputs.coverage }} + maxColorRange: 100 + minColorRange: 0 - # deploy: - # runs-on: ubuntu-latest - # needs: build + deploy: + runs-on: ubuntu-latest + needs: build - # permissions: - # pages: write # to deploy to Pages - # id-token: write # to verify the deployment originates from an appropriate source + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source - # environment: - # name: github-pages - # url: ${{ steps.deployment.outputs.page_url }} + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} - # steps: - # - name: Upload artifact - # uses: actions/upload-pages-artifact@v3 - # with: - # path: ./docs + steps: + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./docs - # - name: Deploy to GitHub Pages - # id: deployment - # uses: actions/deploy-pages@v4 + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4