mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
jeez, i'm dumb
This commit is contained in:
parent
e582b03fe6
commit
b3ae79aa54
2 changed files with 5 additions and 4 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -210,12 +210,14 @@ jobs:
|
|||
env:
|
||||
COMPRESSION: xz
|
||||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
|
||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||
|
||||
- run: scripts/bottle.ts ${{ needs.build.outputs.built }}
|
||||
id: bottle-gz
|
||||
env:
|
||||
COMPRESSION: gz
|
||||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
|
||||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|
||||
|
||||
- name: upload bottles
|
||||
id: upload
|
||||
|
|
|
@ -19,7 +19,7 @@ args:
|
|||
|
||||
import { Installation } from "types"
|
||||
import { useCellar, usePrefix, useFlags, useCache } from "hooks"
|
||||
import { backticks, run } from "utils"
|
||||
import { backticks, panic, run } from "utils"
|
||||
import { crypto } from "deno/crypto/mod.ts"
|
||||
import { encode } from "deno/encoding/hex.ts"
|
||||
import { encode as base64Encode } from "deno/encoding/base64.ts"
|
||||
|
@ -36,9 +36,8 @@ if (import.meta.main) {
|
|||
useFlags()
|
||||
|
||||
const compression = Deno.env.get("COMPRESSION") == 'xz' ? 'xz' : 'gz'
|
||||
const gpgKey = Deno.env.get("GPG_KEY_ID")
|
||||
const gpgPassphrase = Deno.env.get("GPG_PASSPHRASE")
|
||||
if (!gpgKey || !gpgPassphrase) throw new Error("missing GPG_KEY_ID")
|
||||
const gpgKey = Deno.env.get("GPG_KEY_ID") ?? panic("missing GPG_KEY_ID")
|
||||
const gpgPassphrase = Deno.env.get("GPG_PASSPHRASE") ?? panic("missing GPG_PASSPHRASE")
|
||||
const checksums: string[] = []
|
||||
const signatures: string[] = []
|
||||
const bottles: Path[] = []
|
||||
|
|
Loading…
Reference in a new issue