diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bbfd1e9..e1b3fa4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,8 +2,6 @@ name: Build AppImage, Windows EXE and Publish Release on: push: - branches: - - main tags: - 'v*.*.*' workflow_dispatch: @@ -20,6 +18,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + fetch-depth: 0 + ref: ${{ github.ref }} - name: Set up Python uses: actions/setup-python@v4 @@ -81,6 +82,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + fetch-depth: 0 + ref: ${{ github.ref }} - name: Set up Python uses: actions/setup-python@v4 @@ -120,7 +124,7 @@ jobs: id: create_release uses: softprops/action-gh-release@v2 with: - tag_name: ${{ github.ref }} + tag_name: ${{ github.ref_name }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}