From 5b5bceed0a9cfd2b1b3ed8e99878a614264aa8b5 Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Mon, 21 Oct 2024 16:37:49 +0800 Subject: [PATCH] Script(fix): Fix release assets (#427) * Script(fix): install libsuop3 * do action on push * 0fixup * update * update * update * update --- .github/workflows/pack-debian.sh | 2 +- .github/workflows/release.yml | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pack-debian.sh b/.github/workflows/pack-debian.sh index eb4c2184..652925e8 100755 --- a/.github/workflows/pack-debian.sh +++ b/.github/workflows/pack-debian.sh @@ -18,7 +18,7 @@ SRAIN_TAG_DATE=`git log $SRAIN_TAG -n 1 --pretty=format:"%ad" --date=format:'%a, # Make dependencies: gettext, libconfig-dev, libgtk-3-dev, libsecret-1-dev, libsoup2.4-dev, libssl-dev, pkg-config # Runtime dependencies: glib-networking, libgtk-3-0, libsecret-1-0, libconfig9, libsoup2.4 # Python3 script: python3 python3-requests -apt-get install -y debhelper dpkg-dev gettext libconfig-dev libgtk-3-dev libsecret-1-dev libsoup2.4-dev libssl-dev pkg-config glib-networking libgtk-3-0 libsecret-1-0 libconfig9 libsoup2.4 python3 python3-requests meson libayatana-appindicator3-dev; +apt-get install -y debhelper dpkg-dev gettext libconfig-dev libgtk-3-dev libsecret-1-dev libsoup-3.0-dev libssl-dev pkg-config glib-networking libgtk-3-0 libsecret-1-0 libconfig9 libsoup-3.0-0 python3 python3-requests meson libayatana-appindicator3-dev; # Download the debian files. git clone https://github.com/SrainApp/srain-contrib.git --depth 1; cd srain-contrib; diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbdcbd34..e73d6c70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,10 +2,12 @@ name: release assets on: release: types: [created] +# push: + jobs: debian-bullseye: runs-on: ubuntu-latest - container: debian:bullseye + container: debian:bookworm env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }} @@ -13,7 +15,7 @@ jobs: steps: - name: upgrade the packages run: apt-get update && apt-get upgrade -y && apt-get install -y git - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: build run: .github/workflows/pack-debian.sh - name: upload the assets @@ -28,13 +30,15 @@ jobs: GH_REPO: ${{ github.repository }} GH_REF: ${{ github.ref }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + # with: + # fetch-depth: 0 # for on-push + `git describe --tags` - uses: msys2/setup-msys2@v2 name: Init MSYS2/MINGW64 environment with: update: true msystem: MINGW64 - install: base-devel git curl zip mingw-w64-x86_64-python-requests mingw-w64-x86_64-gcc mingw-w64-x86_64-gtk3 mingw-w64-x86_64-libconfig mingw-w64-x86_64-libsoup mingw-w64-x86_64-libsecret mingw-w64-x86_64-pkg-config mingw-w64-x86_64-gettext mingw-w64-x86_64-glib-networking mingw-w64-x86_64-meson mingw-w64-x86_64-appstream-glib + install: base-devel git curl zip mingw-w64-x86_64-python-requests mingw-w64-x86_64-gcc mingw-w64-x86_64-gtk3 mingw-w64-x86_64-libconfig mingw-w64-x86_64-libsoup3 mingw-w64-x86_64-libsecret mingw-w64-x86_64-pkg-config mingw-w64-x86_64-gettext mingw-w64-x86_64-glib-networking mingw-w64-x86_64-meson mingw-w64-x86_64-appstream-glib - name: Build run: | SRAIN_TAG=`git describe --tags`;