diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3745266..5a52ff8 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -38,7 +38,9 @@ jobs: - uses: actions/checkout@v2 - name: Remove branch 'latest' continue-on-error: true - run: git push origin :latest + run: | + git branch -d latest || true + git push origin :latest - name: Create the new 'latest' branch run: | git branch latest