diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c612e7d60..65e558f61 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,6 +14,8 @@ jobs: - name: Check out code uses: actions/checkout@v4 with: + fetch-depth: 0 + fetch-tags: true submodules: recursive - name: Use Node.js uses: actions/setup-node@v4 @@ -33,8 +35,12 @@ jobs: git config user.email 'github-actions[bot]@users.noreply.github.com' - name: Update stable branch run: | - git fetch --unshallow git checkout stable git pull git merge --no-ff main -m "Publish to stable" git push + - name: Create snapshot + run: | + suffix=$(git rev-parse --short HEAD) + git checkout -b snapshot-${suffix} + git push origin snapshot-${suffix}