Split dispatch jobs
@@ -11,15 +11,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
-
- name: Update tags
run: git fetch --tags
-
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
-
- name: Install dependencies
run: |
python --version
@@ -42,18 +39,36 @@ jobs:
with:
body: |
Gammapy is a Python package for gamma-ray astronomy. See [changelog for this release](https://github.com/gammapy/gammapy/blob/main/docs/release-notes/${{ github.ref_name}}.rst).
- dispatch-repos:
+ dispatch-docs:
needs: release-pypi
- strategy:
- matrix:
- repo: ['gammapy/gammapy-docs', 'gammapy/gammapy-webpage', 'gammapy/gammapy-data']
runs-on: ubuntu-latest
steps:
- - name: Repository Dispatch
+ - name: Dispatch Gammapy Docs
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.REMOTE_DISPATCH }}
- repository: ${{ matrix.repo }}
+ repository: gammapy/gammapy-docs
+ event-type: release
+ client-payload: '{"release": "${{ github.ref_name }}"}'
+ dispatch-data:
+ needs: release-github
+ runs-on: ubuntu-latest
+ steps:
+ - name: Dispatch Gammapy Data
+ uses: peter-evans/repository-dispatch@v2
+ with:
+ token: ${{ secrets.REMOTE_DISPATCH }}
+ repository: gammapy/gammapy-data
+ event-type: release
+ client-payload: '{"release": "${{ github.ref_name }}"}'
+ dispatch-webpage:
+ needs: release-github
+ runs-on: ubuntu-latest
+ steps:
+ - name: Dispatch Gammapy Webpage
+ uses: peter-evans/repository-dispatch@v2
+ with:
+ token: ${{ secrets.REMOTE_DISPATCH }}
+ repository: gammapy/gammapy-webpage
event-type: release
client-payload: '{"release": "${{ github.ref_name }}"}'
\ No newline at end of file
-
\ No newline at end of file
