Skip to content

Commit

Permalink
Revert "always deploy the site on push, but only build api docs on re…
Browse files Browse the repository at this point in the history
…lease"

This reverts commit 82dd677.
  • Loading branch information
Ellpeck committed Sep 15, 2024
1 parent 82dd677 commit 88136ab
Show file tree
Hide file tree
Showing 241 changed files with 5 additions and 291,734 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

9 changes: 3 additions & 6 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ jobs:
dotnet-version: '8.0.x'
- name: Restore tools
run: dotnet tool restore
- name: Run BuildDocsMetadata
if: startsWith(github.ref, 'refs/tags/')
run: dotnet cake --target BuildDocsMetadata --ref ${{ github.ref }} --buildNum ${{ github.run_number }}
- name: Run BuildDocsSite
run: dotnet cake --target BuildDocsSite --ref ${{ github.ref }} --buildNum ${{ github.run_number }}
- name: Run Document
run: dotnet cake --target Document --ref ${{ github.ref }} --buildNum ${{ github.run_number }}
- name: Upload docs artifact
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -73,7 +70,7 @@ jobs:
include-hidden-files: true
if-no-files-found: error
- name: Deploy
if: github.event_name == 'push'
if: startsWith(github.ref, 'refs/tags/')
# this is a beautiful way to deploy a website and i will not take any criticism
run: |
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb
Expand Down
1 change: 1 addition & 0 deletions Docs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/**/bin/
/**/obj/
_site
api
1,666 changes: 0 additions & 1,666 deletions Docs/api/.manifest

This file was deleted.

Loading

0 comments on commit 88136ab

Please sign in to comment.