Only create releases on tag pushes to the official repository.
This commit is contained in:
parent
6292f2a3a5
commit
284b9a0df1
|
@ -130,8 +130,10 @@ jobs:
|
||||||
- name: Test Drush site install with all modules
|
- 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'
|
run: docker compose exec -u www-data -T www drush site-install --db-url=${{ matrix.DB_URL }} farm farm.modules='all'
|
||||||
release:
|
release:
|
||||||
name: Create GitHub release
|
name: Create release
|
||||||
if: github.event_name == 'push' && github.ref_type == 'tag'
|
# 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
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
|
|
Loading…
Reference in New Issue