Only create releases on tag pushes to the official repository.

This commit is contained in:
Michael Stenta 2023-10-23 13:23:23 -04:00
parent 485908beb0
commit 9d8dc8dd1f
1 changed files with 4 additions and 2 deletions

View File

@ -127,8 +127,10 @@ jobs:
- name: Test Drush site install with all modules
run: docker compose exec -u www-data -T www drush site-install --db-url=${{ matrix.DB_URL }} farm farm.modules='all'
release:
name: Create GitHub release
if: github.event_name == 'push' && github.ref_type == 'tag'
name: Create release
# We only create a release if this is a tag push event to the official
# repository.
if: github.repository == 'farmOS/farmOS' && github.event_name == 'push' && github.ref_type == 'tag'
runs-on: ubuntu-latest
needs:
- build