Skip to content

Commit

Permalink
ci: update docs only on version release
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcath committed Jan 31, 2024
1 parent 0979341 commit a1ed631
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,18 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new

- name: 📃 Push Read Me
uses: christian-korneck/update-container-description-action@v1
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
env:
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASS: ${{ secrets.DOCKER_PASSWORD }}
with:
destination_container_repo: longridgehighschool/start-screen
provider: dockerhub
short_description: 'Highly customizable Start Screen for schools'
readme_file: 'README.md'

# This ugly bit is necessary if you don't want your cache to grow forever
# till it hits GitHub's limit of 5GB.
# Temp fix
Expand Down Expand Up @@ -239,7 +251,7 @@ jobs:
run: cd docs && npm run build

- name: 🚀 Deploy
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
Expand Down

0 comments on commit a1ed631

Please sign in to comment.