diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..33fd609 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,45 @@ +name: Deploy docs + +on: + push: + branches: + - main + workflow_dispatch: + +env: + FORCE_COLOR: 1 + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + docs: + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 + with: + dotnet-version: 9.0.x + + - name: Build docs + run: | + dotnet tool install retypeapp --global + retype build . --output ./site --verbose + + - name: Upload artifact + uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1 + with: + path: './site' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 \ No newline at end of file diff --git a/.github/workflows/retype-action.yml b/.github/workflows/retype-action.yml deleted file mode 100644 index 169b922..0000000 --- a/.github/workflows/retype-action.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Publish Retype powered website to GitHub Pages -on: - workflow_dispatch: - push: - branches: - - main - -jobs: - publish: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - persist-credentials: false - fetch-depth: 0 - - - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 - with: - dotnet-version: 9.0.x - - - uses: retypeapp/action-build@latest - - - uses: retypeapp/action-github-pages@latest - with: - update-branch: true