commit 617f481a6c1eae5e32c992a69a475ed23e6565b6 parent 6eb2fa083c124a050fc32771a70eb40e6e6db53e Author: Amit Dutta <amitdutta4255@gmail.com> Date: Wed, 13 May 2026 22:32:58 +0530 Refactor GitHub Actions workflow for deployment Diffstat:
| M | .github/workflows/retype.yml | | | 51 | +++++++++++++++++++++++++++------------------------ |
1 file changed, 27 insertions(+), 24 deletions(-)
diff --git a/.github/workflows/retype.yml b/.github/workflows/retype.yml @@ -1,27 +1,30 @@ -name: Publish Retype +name: Deploy + on: - push: - branches: - - main - workflow_dispatch: + workflow_dispatch: + + push: + branches: + - main jobs: - publish: - name: Publish to retype branch - runs-on: ubuntu-latest - permissions: - contents: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Build Retype Website - uses: retypeapp/action-build@latest - with: - key: ${{ secrets.RETYPE_KEY }} - - - name: Publish to GitHub Pages - uses: retypeapp/action-github-pages@latest - with: - update-branch: true + publish: + name: Publish + + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-dotnet@v1 + with: + dotnet-version: 7.0.x + + - uses: retypeapp/action-build@latest + + - uses: retypeapp/action-github-pages@latest + with: + update-branch: true