mirror of
https://github.com/django-components/django-components.git
synced 2025-08-23 15:34:05 +00:00
Make sure we run on master.
This commit is contained in:
parent
3f38a25dd3
commit
36b8fcfbe6
1 changed files with 4 additions and 8 deletions
12
.github/workflows/docs.yml
vendored
12
.github/workflows/docs.yml
vendored
|
@ -1,9 +1,8 @@
|
||||||
---
|
---
|
||||||
name: Test and Deploy Docs
|
name: Docs - build & deploy
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# XXX Commented-out for testing
|
branches: [master]
|
||||||
# branches: [master]
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
ref:
|
ref:
|
||||||
|
@ -18,8 +17,7 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# XXX Enable to avoid forks deploying
|
if: github.ref == 'refs/heads/master' && github.repository_owner == 'EmilStenstrom'
|
||||||
# if: github.ref == 'refs/heads/main' && github.repository_owner == 'EmilStenstrom'
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -51,9 +49,7 @@ jobs:
|
||||||
git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
|
|
||||||
- name: Deploy docs (dev)
|
- name: Deploy docs (dev)
|
||||||
if: github.event_name == 'push' && github.ref_type == 'branch'
|
if: github.event_name == 'push' && github.ref_name == 'master' && github.ref_type == 'branch'
|
||||||
# XXX Set to master only after testing
|
|
||||||
# if: github.event_name == 'push' && github.ref_name == 'master' && github.ref_type == 'branch'
|
|
||||||
run: |
|
run: |
|
||||||
export SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
|
export SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
|
||||||
hatch run docs:mike deploy dev --update-aliases --title "dev (${SHORT_SHA})" --push
|
hatch run docs:mike deploy dev --update-aliases --title "dev (${SHORT_SHA})" --push
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue