mirror of
https://github.com/yggdrasil-network/yggstack.git
synced 2025-04-28 14:15:07 +03:00
Fix release upload
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
parent
98b1a1c79d
commit
873b19b7c6
1 changed files with 6 additions and 7 deletions
13
.github/workflows/trunk.yml
vendored
13
.github/workflows/trunk.yml
vendored
|
@ -37,9 +37,8 @@ jobs:
|
||||||
- name: Check if commit needs a release upload
|
- name: Check if commit needs a release upload
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.ref_type }}" = "tag" ]; then
|
if [ "${{ github.ref_type }}" = "tag" ]; then
|
||||||
echo "PRERELEASE=''" >> "$GITHUB_ENV"
|
echo "RELEASENAME=${{ github.ref_name }}" >> "$GITHUB_ENV"
|
||||||
echo "RELEASE_NAME='${{ github.ref_name }}'" >> "$GITHUB_ENV"
|
elif [ "${{ github.ref }}" = "refs/heads/develop" ]; then
|
||||||
elif "${{ github.ref }}" = "refs/heads/develop" ]; then
|
|
||||||
echo "PRERELEASE=--prerelease" >> "$GITHUB_ENV"
|
echo "PRERELEASE=--prerelease" >> "$GITHUB_ENV"
|
||||||
echo "RELEASENAME=trunk" >> "$GITHUB_ENV"
|
echo "RELEASENAME=trunk" >> "$GITHUB_ENV"
|
||||||
else
|
else
|
||||||
|
@ -233,9 +232,9 @@ jobs:
|
||||||
#echo "::endgroup::"
|
#echo "::endgroup::"
|
||||||
|
|
||||||
- name: Publish release
|
- name: Publish release
|
||||||
if: ${{ env.SKIP_UPLOAD != '1' }}
|
if: ${{ env.SKIP_UPLOAD == '' }}
|
||||||
run: |
|
run: |
|
||||||
gh release create "${{ env.RELEASENAME }}" "${{ env.PRERELEASE }}" yggstack-* || gh release upload "${{ env.RELEASENAME }}" yggstack-* --clobber
|
gh release create "${{ env.RELEASENAME }}" ${{ env.PRERELEASE }} yggstack-* || gh release upload "${{ env.RELEASENAME }}" yggstack-* --clobber
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
|
@ -244,7 +243,7 @@ jobs:
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
if: ${{ env.SKIP_UPLOAD != '1' }}
|
if: ${{ env.SKIP_UPLOAD == '' }}
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
|
@ -252,7 +251,7 @@ jobs:
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push yggstack container image
|
- name: Build and push yggstack container image
|
||||||
if: ${{ env.SKIP_UPLOAD != '1' }}
|
if: ${{ env.SKIP_UPLOAD == '' }}
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue