Update .gitea/workflows/release.yml
This commit is contained in:
@@ -148,26 +148,25 @@ jobs:
|
||||
run: |
|
||||
BASE="${{ needs.build.outputs.base_version }}"
|
||||
TAG="v${BASE}-dev"
|
||||
|
||||
mv artifacts/app-release.apk "artifacts/app-${BASE}-dev.apk"
|
||||
mv artifacts/app-linux-x64.tar.gz "artifacts/app-linux-x64-${BASE}-dev.tar.gz"
|
||||
if [ -f artifacts/app-windows-x64.zip ]; then
|
||||
mv artifacts/app-windows-x64.zip "artifacts/app-windows-x64-${BASE}-dev.zip"
|
||||
fi
|
||||
|
||||
FILES=$(cat <<EOF
|
||||
artifacts/app-${BASE}-dev.apk
|
||||
artifacts/app-linux-x64-${BASE}-dev.tar.gz
|
||||
EOF
|
||||
)
|
||||
if [ -f artifacts/app-windows-x64-${BASE}-dev.zip ]; then
|
||||
FILES="$FILES
|
||||
artifacts/app-windows-x64-${BASE}-dev.zip"
|
||||
FILES="artifacts/app-${BASE}-dev.apk"
|
||||
FILES="${FILES}"$'\n'"artifacts/app-linux-x64-${BASE}-dev.tar.gz"
|
||||
if [ -f "artifacts/app-windows-x64-${BASE}-dev.zip" ]; then
|
||||
FILES="${FILES}"$'\n'"artifacts/app-windows-x64-${BASE}-dev.zip"
|
||||
fi
|
||||
|
||||
echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
|
||||
echo "files<<EOF" >> "$GITHUB_OUTPUT"
|
||||
echo "$FILES" >> "$GITHUB_OUTPUT"
|
||||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
{
|
||||
echo "tag=${TAG}"
|
||||
echo 'files<<EOF'
|
||||
printf '%s\n' "$FILES"
|
||||
echo 'EOF'
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Create prerelease on Gitea
|
||||
uses: ncipollo/release-action@v1
|
||||
@@ -207,23 +206,25 @@ artifacts/app-windows-x64-${BASE}-dev.zip"
|
||||
run: |
|
||||
BASE="${{ needs.build.outputs.base_version }}"
|
||||
TAG="v${BASE}"
|
||||
|
||||
mv artifacts/app-release.apk "artifacts/app-${BASE}.apk"
|
||||
mv artifacts/app-linux-x64.tar.gz "artifacts/app-linux-x64-${BASE}.tar.gz"
|
||||
if [ -f artifacts/app-windows-x64.zip ]; then
|
||||
mv artifacts/app-windows-x64.zip "artifacts/app-windows-x64-${BASE}.zip"
|
||||
fi
|
||||
|
||||
FILES="artifacts/app-${BASE}.apk
|
||||
artifacts/app-linux-x64-${BASE}.tar.gz"
|
||||
if [ -f artifacts/app-windows-x64-${BASE}.zip ]; then
|
||||
FILES="$FILES
|
||||
artifacts/app-windows-x64-${BASE}.zip"
|
||||
FILES="artifacts/app-${BASE}.apk"
|
||||
FILES="${FILES}"$'\n'"artifacts/app-linux-x64-${BASE}.tar.gz"
|
||||
if [ -f "artifacts/app-windows-x64-${BASE}.zip" ]; then
|
||||
FILES="${FILES}"$'\n'"artifacts/app-windows-x64-${BASE}.zip"
|
||||
fi
|
||||
|
||||
echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
|
||||
echo "files<<EOF" >> "$GITHUB_OUTPUT"
|
||||
echo "$FILES" >> "$GITHUB_OUTPUT"
|
||||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
{
|
||||
echo "tag=${TAG}"
|
||||
echo 'files<<EOF'
|
||||
printf '%s\n' "$FILES"
|
||||
echo 'EOF'
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Create release on Gitea
|
||||
uses: ncipollo/release-action@v1
|
||||
|
||||
Reference in New Issue
Block a user