Dax Raad 6 месяцев назад
Родитель
Сommit
d1876e3031
2 измененных файлов с 5 добавлено и 8 удалено
  1. 5 6
      .github/workflows/publish.yml
  2. 0 2
      packages/opencode/script/publish.ts

+ 5 - 6
.github/workflows/publish.yml

@@ -48,11 +48,10 @@ jobs:
           restore-keys: |
           restore-keys: |
             ${{ runner.os }}-bun-
             ${{ runner.os }}-bun-
 
 
-      # Temporarily disabled AUR steps
-      # - name: Install makepkg
-      #   run: |
-      #     sudo apt-get update
-      #     sudo apt-get install -y pacman-package-manager
+      - name: Install makepkg
+        run: |
+          sudo apt-get update
+          sudo apt-get install -y pacman-package-manager
 
 
       - name: Setup SSH for AUR
       - name: Setup SSH for AUR
         run: |
         run: |
@@ -61,7 +60,7 @@ jobs:
           chmod 600 ~/.ssh/id_rsa
           chmod 600 ~/.ssh/id_rsa
           git config --global user.email "[email protected]"
           git config --global user.email "[email protected]"
           git config --global user.name "opencode"
           git config --global user.name "opencode"
-      #     ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts
+          ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts
       - name: Install dependencies
       - name: Install dependencies
         run: bun install
         run: bun install
 
 

+ 0 - 2
packages/opencode/script/publish.ts

@@ -97,7 +97,6 @@ if (!snapshot) {
   const macX64Sha = await $`sha256sum ./dist/opencode-darwin-x64.zip | cut -d' ' -f1`.text().then((x) => x.trim())
   const macX64Sha = await $`sha256sum ./dist/opencode-darwin-x64.zip | cut -d' ' -f1`.text().then((x) => x.trim())
   const macArm64Sha = await $`sha256sum ./dist/opencode-darwin-arm64.zip | cut -d' ' -f1`.text().then((x) => x.trim())
   const macArm64Sha = await $`sha256sum ./dist/opencode-darwin-arm64.zip | cut -d' ' -f1`.text().then((x) => x.trim())
 
 
-  /*
   // AUR package
   // AUR package
   const pkgbuild = [
   const pkgbuild = [
     "# Maintainer: dax",
     "# Maintainer: dax",
@@ -137,7 +136,6 @@ if (!snapshot) {
     await $`cd ./dist/aur-${pkg} && git commit -m "Update to v${version}"`
     await $`cd ./dist/aur-${pkg} && git commit -m "Update to v${version}"`
     if (!dry) await $`cd ./dist/aur-${pkg} && git push`
     if (!dry) await $`cd ./dist/aur-${pkg} && git push`
   }
   }
-  */
 
 
   // Homebrew formula
   // Homebrew formula
   const homebrewFormula = [
   const homebrewFormula = [