mirror of
https://github.com/Dvorinka/Primora.git
synced 2026-10-28 07:41:23 +00:00
Merge pull request #5 from Dvorinka/fix/release-artifact-download
ci: exclude .dockerbuild artifacts from release download
This commit is contained in:
3 files changed
+19
-6
No files matched your search
@@ -19,11 +19,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check tag matches package version
|
||||
- name: Check tag matches package versions
|
||||
run: |
|
||||
PKG=$(node -p "require('./package.json').version")
|
||||
if [ "v$PKG" != "$VERSION" ]; then
|
||||
echo "tag $VERSION does not match package.json version $PKG"
|
||||
DESKTOP_PKG=$(node -p "require('./apps/desktop/package.json').version")
|
||||
TAURI=$(node -p "require('./apps/desktop/src-tauri/tauri.conf.json').version")
|
||||
if [ "v$PKG" != "$VERSION" ] || [ "$DESKTOP_PKG" != "$PKG" ] || [ "$TAURI" != "$PKG" ]; then
|
||||
echo "tag $VERSION mismatch: root=$PKG desktop=$DESKTOP_PKG tauri=$TAURI"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -153,11 +155,22 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# build-push-action uploads "*.dockerbuild" metadata artifacts that
|
||||
# download-artifact cannot extract — match only the real artifacts.
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
pattern: "*"
|
||||
pattern: "binaries-*"
|
||||
merge-multiple: true
|
||||
path: dist-release
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
pattern: "desktop-*"
|
||||
merge-multiple: true
|
||||
path: dist-release
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: npm-tarballs
|
||||
path: dist-release
|
||||
- name: Extract changelog section
|
||||
run: |
|
||||
awk -v ver="${VERSION#v}" '
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@primora/desktop",
|
||||
"version": "0.5.0",
|
||||
"version": "0.6.0",
|
||||
"private": true,
|
||||
"description": "Primora desktop shell — thin Tauri client for a self-hosted deployment",
|
||||
"scripts": {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "Primora",
|
||||
"version": "0.5.0",
|
||||
"version": "0.6.0",
|
||||
"identifier": "dev.tdvorak.primora",
|
||||
"build": {
|
||||
"frontendDist": "../ui"
|
||||
|
||||
Reference in new issue
Block a user