mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
ci: use docs on GitHub Pages
This commit is contained in:
parent
b9ac45d5da
commit
84ca722261
1 changed files with 10 additions and 10 deletions
20
.github/workflows/docs.yml
vendored
20
.github/workflows/docs.yml
vendored
|
|
@ -28,9 +28,11 @@ jobs:
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
name: Build and Release Docs
|
name: Build and Release Docs
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
pages: write
|
||||||
deployments: write
|
id-token: write
|
||||||
pull-requests: write
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -42,11 +44,9 @@ jobs:
|
||||||
uses: go-task/setup-task@v1
|
uses: go-task/setup-task@v1
|
||||||
- name: Build site
|
- name: Build site
|
||||||
run: task docs
|
run: task docs
|
||||||
- name: Deploy to Cloudflare Pages
|
- name: Upload static files as artifact
|
||||||
uses: cloudflare/wrangler-action@v3
|
uses: actions/upload-pages-artifact@v4
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
path: www/public
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
- name: Deploy to GitHub Pages
|
||||||
command: pages deploy www/public --project-name=${{ secrets.CLOUDFLARE_PROJECT_NAME }}
|
uses: actions/deploy-pages@v4
|
||||||
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue