@@ -42,11 +42,11 @@ jobs:
4242 GH_TOKEN : ${{ github.token }}
4343 GH_COBRA : 1
4444 run : |
45- echo head_sha=$(gh api /repos/enterprise-contract/ec-cli/git/matching-refs/heads/main --jq '.[0].object.sha') >> "$GITHUB_OUTPUT"
45+ echo head_sha=$(gh api /repos/enterprise-contract/ec-cli/git/matching-refs/heads/main --jq '.[0].object.sha') | tee -a "$GITHUB_OUTPUT"
4646 - name : Timestamp
4747 id : timestamp
4848 run : |
49- echo timestamp=$(date '+%s') >> "$GITHUB_OUTPUT"
49+ echo timestamp=$(date '+%s') | tee -a "$GITHUB_OUTPUT"
5050
5151 release :
5252
@@ -144,6 +144,7 @@ jobs:
144144 # uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
145145
146146 - name : Delete snapshot release and tag
147+ id : add_tags
147148 run : |
148149 echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
149150 RELEASE_ID=$(gh api \
@@ -157,15 +158,26 @@ jobs:
157158 git config --local user.email "action@github.com"
158159 git config --local user.name "GitHub Action"
159160 git tag -a -f -m 'Development snapshot' snapshot
161+
160162 source hack/add-auto-tag.sh
163+ echo "tag_name=$( source hack/derive-version.sh )" | tee -a "$GITHUB_OUTPUT"
164+
161165 git push -f --tags
162166
163- - name : Release
167+ - name : Versioned release
168+ uses : softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564 # v2.0.4
169+ with :
170+ name : ${{ steps.add_tags.outputs.tag_name }}
171+ tag_name : ${{ steps.add_tags.outputs.tag_name }}
172+ generate_release_notes : false
173+ files : dist/*
174+
175+ - name : Rolling release
164176 uses : softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564 # v2.0.4
165177 with :
166- prerelease : true
178+ make_latest : true
167179 name : Rolling release
168- body : Stable rolling release. Version can be determined by running `ec version`
180+ body : Stable rolling release. Version can be determined by running `ec version`.
169181 tag_name : snapshot
170182 generate_release_notes : false
171183 files : dist/*
0 commit comments