jeez, i'm dumb

This commit is contained in:
Jacob Heider 2022-12-01 15:59:02 -05:00 committed by Jacob Heider
parent e582b03fe6
commit b3ae79aa54
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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[] = []