fix:action error

This commit is contained in:
intelligence committed 2026-08-14 13:15:00 +02:00
1 parent 35943c1aef
commit 8e06d7f6ac
3 files changed
+99 -42

No files matched your search

+36 -42
View File
@@ -19,7 +19,7 @@ jobs:
run: |
apt-get update
apt-get install -y --no-install-recommends \
cmake g++ pkg-config dpkg-dev libgtk-3-dev libcurl4-openssl-dev \
cmake g++ pkg-config python3 dpkg-dev libgtk-3-dev libcurl4-openssl-dev \
libgstreamer1.0-dev gstreamer1.0-plugins-good libsecret-1-dev \
libjson-glib-dev wtype xdotool
- name: Configure
@@ -29,28 +29,25 @@ jobs:
- name: Package
run: |
cmake --build build --target package --parallel 2
mkdir -p dist
cp build/*.deb dist/
- name: Store package
if: ${{ gitea.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v4
with:
name: transui-deb-amd64
path: dist/*.deb
if-no-files-found: error
- name: Upload release package
if: ${{ gitea.event_name == 'release' }}
mkdir -p artifacts
cp build/*.deb artifacts/
sha256sum artifacts/*.deb > artifacts/SHA256SUMS
- name: Attach packages to the Gitea release
if: gitea.event_name == 'release'
shell: bash
env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
RELEASE_ID: ${{ gitea.event.release.id }}
RELEASE_URL: ${{ gitea.api_url }}/repos/${{ gitea.repository }}/releases/${{ gitea.event.release.id }}/assets
run: |
for package in dist/*.deb; do
curl --fail-with-body --request POST \
--header "Authorization: token ${GITEA_TOKEN}" \
--form "attachment=@${package}" \
"${RELEASE_URL}"
done
GITEA_RELEASE_TAG: ${{ gitea.event.release.tag_name }}
run: scripts/publish-release-assets.sh
- name: Upload Debian packages
if: always()
uses: christopherhx/gitea-upload-artifact@v4
with:
name: transui-debian-amd64
path: artifacts/
if-no-files-found: error
build-arm64:
runs-on: debian-latest-arm64
@@ -65,7 +62,7 @@ jobs:
run: |
apt-get update
apt-get install -y --no-install-recommends \
cmake g++ pkg-config dpkg-dev libgtk-3-dev libcurl4-openssl-dev \
cmake g++ pkg-config python3 dpkg-dev libgtk-3-dev libcurl4-openssl-dev \
libgstreamer1.0-dev gstreamer1.0-plugins-good libsecret-1-dev \
libjson-glib-dev wtype xdotool
- name: Configure
@@ -75,25 +72,22 @@ jobs:
- name: Package
run: |
cmake --build build --target package --parallel 2
mkdir -p dist
cp build/*.deb dist/
- name: Store package
if: ${{ gitea.event_name == 'workflow_dispatch' }}
uses: actions/upload-artifact@v4
with:
name: transui-deb-arm64
path: dist/*.deb
if-no-files-found: error
- name: Upload release package
if: ${{ gitea.event_name == 'release' }}
mkdir -p artifacts
cp build/*.deb artifacts/
sha256sum artifacts/*.deb > artifacts/SHA256SUMS
- name: Attach packages to the Gitea release
if: gitea.event_name == 'release'
shell: bash
env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
RELEASE_ID: ${{ gitea.event.release.id }}
RELEASE_URL: ${{ gitea.api_url }}/repos/${{ gitea.repository }}/releases/${{ gitea.event.release.id }}/assets
run: |
for package in dist/*.deb; do
curl --fail-with-body --request POST \
--header "Authorization: token ${GITEA_TOKEN}" \
--form "attachment=@${package}" \
"${RELEASE_URL}"
done
GITEA_RELEASE_TAG: ${{ gitea.event.release.tag_name }}
run: scripts/publish-release-assets.sh
- name: Upload Debian packages
if: always()
uses: christopherhx/gitea-upload-artifact@v4
with:
name: transui-debian-arm64
path: artifacts/
if-no-files-found: error