v30.20.0 #64
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish-release | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish-release: | |
name: Publish release | |
runs-on: ubuntu-latest | |
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags') | |
steps: | |
- name: Run preparatory steps | |
uses: dasch-swiss/dsp-api/.github/actions/preparation@main | |
- name: Install requirements (apt, pip, npm) | |
run: | | |
sudo apt-get install graphviz | |
python -m pip install --upgrade pip | |
pip install -r docs/requirements.txt | |
npm install --global typedoc | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and publish all images to Dockerhub | |
run: | | |
echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin | |
make docker-publish | |
send-chat-notification: | |
name: Send google chat notification | |
needs: [publish-release] | |
runs-on: ubuntu-latest | |
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags') | |
steps: | |
- name: Send notification to google chat room "DSP releases" | |
uses: lakto/google-chat-action@main | |
with: | |
url: ${{ secrets.GOOGLE_CHAT_DSP_RELEASES_WEBHOOK_URL }} | |