From 86a1d0f3c35f482a88850ae9419e9484199e5dd5 Mon Sep 17 00:00:00 2001 From: Vomitblood Date: Wed, 7 Aug 2024 17:25:59 +0800 Subject: [PATCH] updated github actions workflow --- .github/workflows/build-validation.yml | 58 +++++++++++++++----------- 1 file changed, 34 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build-validation.yml b/.github/workflows/build-validation.yml index 0a5c4ee..18e2fe8 100644 --- a/.github/workflows/build-validation.yml +++ b/.github/workflows/build-validation.yml @@ -21,30 +21,30 @@ jobs: - name: Get Variables run: echo "TAG_NAME=commit-$(git rev-parse --short HEAD)" >> $GITHUB_ENV - - name: Update packages - run: apt update && apt upgrade -y + # - name: Update packages + # run: apt update && apt upgrade -y - - name: Install dependencies for Tauri - run: apt install -y cargo libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev + # - name: Install dependencies for Tauri + # run: apt install -y cargo libwebkit2gtk-4.0-dev build-essential curl wget file libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev - - name: Install mise - run: | - install -dm 755 /etc/apt/keyrings - wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | tee /etc/apt/keyrings/mise-archive-keyring.gpg 1> /dev/null - echo 'deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main' | tee /etc/apt/sources.list.d/mise.list - apt update - apt install -y mise + # - name: Install mise + # run: | + # install -dm 755 /etc/apt/keyrings + # wget -qO - https://mise.jdx.dev/gpg-key.pub | gpg --dearmor | tee /etc/apt/keyrings/mise-archive-keyring.gpg 1> /dev/null + # echo 'deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=amd64] https://mise.jdx.dev/deb stable main' | tee /etc/apt/sources.list.d/mise.list + # apt update + # apt install -y mise - - name: Install mise tools - run: | - mise install - mise settings set experimental true + # - name: Install mise tools + # run: | + # mise install + # mise settings set experimental true - - name: Install bun packages - run: mise exec bun --command 'bun install' + # - name: Install bun packages + # run: mise exec bun --command 'bun install' - - name: Build Tauri - run: mise exec bun --command 'bun run tauri build' + # - name: Build Tauri + # run: mise exec bun --command 'bun run tauri build' - name: Create Release id: create_release @@ -52,17 +52,27 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ env.TAG_NAME }} - release_name: ${{ env.TAG_NAME }} + tag_name: commit-${{ env.TAG_NAME }} + release_name: commit-${{ env.TAG_NAME }} draft: false prerelease: false - - name: Upload whatsip artifact to release (Windows) + # - name: Upload whatsip artifact to release (Windows) + # uses: actions/upload-release-asset@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # with: + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: ./src-tauri/target/release/bundle/appimage/*.AppImage + # asset_name: stort-appimage.zip + # asset_content_type: application/octet-stream + + - name: Upload build to release uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./src-tauri/target/release/bundle/appimage/*.AppImage - asset_name: stort-appimage.zip + asset_path: ./public/images/background.png + asset_name: background.zip asset_content_type: application/octet-stream