mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 13:11:15 -07:00
Revert "Build snap based on branch instead of tag"
This reverts commit 2e5dd05a6c
.
This commit is contained in:
parent
1af419a860
commit
40e1eb9a49
2 changed files with 12 additions and 5 deletions
12
.github/workflows/publish-snap.yml
vendored
12
.github/workflows/publish-snap.yml
vendored
|
@ -3,7 +3,7 @@ name: Publish Snap
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master, beta, nightly]
|
branches: [master, beta, nightly]
|
||||||
#tags: [v*]
|
tags: [v*]
|
||||||
pull_request: ~
|
pull_request: ~
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -28,10 +28,10 @@ jobs:
|
||||||
id: prepare
|
id: prepare
|
||||||
run: |
|
run: |
|
||||||
git fetch --prune --unshallow --tags
|
git fetch --prune --unshallow --tags
|
||||||
if [[ $GITHUB_REF == refs/heads/master ]]; then
|
if [[ $GITHUB_REF == refs/tags/*-beta || $GITHUB_REF == refs/heads/beta ]]; then
|
||||||
echo ::set-output name=RELEASE::stable
|
|
||||||
elif [[ $GITHUB_REF == refs/heads/beta ]]; then
|
|
||||||
echo ::set-output name=RELEASE::beta
|
echo ::set-output name=RELEASE::beta
|
||||||
|
elif [[ $GITHUB_REF == refs/tags/* || $GITHUB_REF == refs/heads/master ]]; then
|
||||||
|
echo ::set-output name=RELEASE::stable
|
||||||
else
|
else
|
||||||
echo ::set-output name=RELEASE::edge
|
echo ::set-output name=RELEASE::edge
|
||||||
fi
|
fi
|
||||||
|
@ -58,7 +58,9 @@ jobs:
|
||||||
|
|
||||||
- name: Publish Snap Package
|
- name: Publish Snap Package
|
||||||
uses: snapcore/action-publish@v1
|
uses: snapcore/action-publish@v1
|
||||||
if: github.event_name != 'pull_request'
|
if: >
|
||||||
|
github.event_name != 'pull_request' &&
|
||||||
|
(startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/nightly')
|
||||||
with:
|
with:
|
||||||
store_login: ${{ secrets.SNAP_LOGIN }}
|
store_login: ${{ secrets.SNAP_LOGIN }}
|
||||||
snap: ${{ steps.build.outputs.snap }}
|
snap: ${{ steps.build.outputs.snap }}
|
||||||
|
|
|
@ -37,6 +37,11 @@ parts:
|
||||||
else
|
else
|
||||||
GRADE=stable
|
GRADE=stable
|
||||||
fi
|
fi
|
||||||
|
if [ "$VERSION" = "$TAG" ] && [ ! "$VERSION" = "${VERSION%-beta}" ]; then
|
||||||
|
BRANCH=beta
|
||||||
|
elif [ "$VERSION" = "$TAG" ]; then
|
||||||
|
BRANCH=master
|
||||||
|
fi
|
||||||
echo $BRANCH > branch.txt
|
echo $BRANCH > branch.txt
|
||||||
echo $COMMIT > version.txt
|
echo $COMMIT > version.txt
|
||||||
snapcraftctl set-version "$VERSION"
|
snapcraftctl set-version "$VERSION"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue