mirror of
https://github.com/numtide/treefmt.git
synced 2024-10-05 21:17:37 +03:00
fix: restrict github pages publication to published releases (#304)
We currently publish an update when we merge to `main`. This means new functionality that is not yet released is being talked about on the docs site. This restricts deploying to github pages to only published releases. Signed-off-by: Brian McGee <brian@bmcgee.ie>
This commit is contained in:
parent
06f15f4237
commit
ff957c5f1a
4
.github/workflows/gh-pages.yml
vendored
4
.github/workflows/gh-pages.yml
vendored
@ -6,6 +6,8 @@ on:
|
||||
- main
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types: [released]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@ -41,7 +43,7 @@ jobs:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
name: deploy
|
||||
if: github.ref == 'refs/heads/main'
|
||||
if: github.event_name == 'release' && github.event._action == 'released'
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
|
Loading…
Reference in New Issue
Block a user