From d550999157901c2e7561eba60cd4b05a9b2cf738 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Mon, 10 Jul 2023 21:54:30 +0200 Subject: [PATCH] Add release job to action --- .github/workflows/docker.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b9c60fca..92bcbc01 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -205,3 +205,15 @@ jobs: REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} REGISTRY_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} needs: [amd64-push-dockerhub, arm64-push-dockerhub] + + release: + runs-on: ubuntu-latest + needs: [merge-tags-ghcr, merge-tags-dockerhub] + steps: + - uses: actions/checkout@v3 + + - name: Create release + uses: softprops/action-gh-release@v1 + with: + generate_release_notes: true + if: github.repository == 'aiidalab/aiidalab-docker-stack' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))