Skip to content

Commit

Permalink
ci: fix tag release order
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Jan 3, 2021
1 parent bdabf08 commit a120eee
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,6 @@ jobs:
directory: docs/_build/html
tags: true

create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.7
- run: |
python scripts/get-last-release-note.py
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: 🎉 Release ${{ github.ref }}
body_path: 'tmp.md'
draft: false
prerelease: false

update-docker:
needs: update-doc
runs-on: ubuntu-latest
Expand Down Expand Up @@ -126,3 +104,26 @@ jobs:
dockerfile: Dockerfiles/debianx.Dockerfile
buildargs: BUILD_DATE, VCS_REF, JINA_VERSION
tags: "latest, ${{env.JINA_VERSION}}, ${{env.JINA_MINOR_VERSION}}"

create-release:
needs: update-docker
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: 3.7
- run: |
python scripts/get-last-release-note.py
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: 🎉 Release ${{ github.ref }}
body_path: 'tmp.md'
draft: false
prerelease: false

0 comments on commit a120eee

Please sign in to comment.