Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
tag: ${{ steps.get_version. outputs.tag }}
tag: ${{ steps.get_version.outputs.tag }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Check if tag exists
id: check_tag
run: |
if git ls-remote --tags origin | grep -q "refs/tags/v${{ steps.get_version.outputs. version }}"; then
if git ls-remote --tags origin | grep -q "refs/tags/v${{ steps.get_version.outputs.version }}"; then
echo "Tag already exists"
echo "exists=true" >> $GITHUB_OUTPUT
else
Expand All @@ -49,9 +49,9 @@ jobs:
fi

- name: Tag the release
if: steps. check_tag.outputs.exists == 'false'
if: steps.check_tag.outputs.exists == 'false'
run: |
git config user. name "github-actions"
git config user.name "github-actions"
git config user.email "[email protected]"
git tag v${{ steps.get_version.outputs.version }}
git push origin v${{ steps.get_version.outputs.version }}
Expand All @@ -67,14 +67,14 @@ jobs:
uses: ./.github/workflows/deploy-dockerhub.yml
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets. DOCKERHUB_TOKEN }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

deploy-pyinstaller:
needs: deploy-dockerhub
uses: ./.github/workflows/deploy-pyinstaller.yml

upload-release:
needs: [tag-release, deploy-pypi, deploy-dockerhub, deploy-pyinstaller]
uses: ./.github/workflows/upload-artifacts.yml
uses: ./.github/workflows/upload-artifacts.yml
with:
tag_name: ${{ needs.tag-release.outputs.tag }}