Skip to content

[release] version 1.0.1 #45

[release] version 1.0.1

[release] version 1.0.1 #45

Workflow file for this run

name: Publish Docker image
on:
push:
tags:
- '*'
env:
MM_NOTIFICATION_CHANNEL: bots
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🏁 Checkout
uses: actions/checkout@v4
- name: 🏷️ Get Tag
id: version
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: 🐍 Build python package
run: python setup.py sdist
- name: 📦 Upload python package to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/affiliation-matcher-${{ steps.version.outputs.tag }}.tar.gz
tag: ${{ github.ref }}
- name: 🔑 Docker login
run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}
- name: 🐋 Build docker image
run: make docker-build
- name: 📦 Push docker image
run: make docker-push
notify:
needs: build
if: always()
runs-on: ubuntu-latest
steps:
- uses: dataesr/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
mattermost_webhook_url: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
mattermost_channel: ${{ env.MM_NOTIFICATION_CHANNEL}}