Skip to content

Commit

Permalink
fix(ci): main release ci should sp1up from latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
nhtyy committed Jan 18, 2025
1 parent f83e147 commit c4db7f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
pull_token: ${{ secrets.PULL_TOKEN }}

# If it's a nightly release, tag with the release time. If the tag is `main`, we want to use
# `latest` as the tag name. Else, use the tag name as is.
# `latest` as the tag name. else, use the tag name as is.
- name: Compute release name and tag
id: release_info
run: |
Expand Down Expand Up @@ -220,6 +220,8 @@ jobs:
fi
# Creates the release for this specific version
# If this is for latest, this will override the files there, but not change the commit to the current main.
# todo(n): change this to override the commit as well somehow.
- name: Create release
uses: softprops/action-gh-release@v2
with:
Expand Down Expand Up @@ -272,7 +274,7 @@ jobs:

- name: "Install SP1"
env:
SP1UP_VERSION: ${{ github.ref_name }}
SP1UP_VERSION: ${{ github.ref_name == 'main' && 'latest' || github.ref_name }}
run: |
cd sp1up
chmod +x sp1up
Expand Down

0 comments on commit c4db7f3

Please sign in to comment.