diff --git a/.github/workflows/make_stable_release.yml b/.github/workflows/make_stable_release.yml index 5db88c6..c44a5e2 100644 --- a/.github/workflows/make_stable_release.yml +++ b/.github/workflows/make_stable_release.yml @@ -4,6 +4,14 @@ name: Make Stable Release on: workflow_dispatch jobs: + make_stable_release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Update stable branch + run: | + ./scripts/update_stable_branch.sh + make_stable_release: runs-on: ubuntu-latest steps: diff --git a/scripts/update_staging_branch.sh b/scripts/update_stable_branch.sh similarity index 67% rename from scripts/update_staging_branch.sh rename to scripts/update_stable_branch.sh index b9a6472..d17899b 100755 --- a/scripts/update_staging_branch.sh +++ b/scripts/update_stable_branch.sh @@ -3,8 +3,9 @@ set -euxo pipefail if [[ "${GITHUB_ACTIONS:-}" != "" && "${ACT:-}" != "true" ]]; then - git branch -f staging - git push origin staging --force + git checkout latest + git branch -f stable + git push origin stable --force else echo "Skipping staging push because not in GitHub Actions." fi