Skip to content

Commit

Permalink
deb
Browse files Browse the repository at this point in the history
  • Loading branch information
eemmiillyy committed Jul 17, 2024
1 parent a696988 commit aabe943
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release-cli-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ jobs:
security set-key-partition-list -S apple-tool:,apple: -k "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
security list-keychain -d user -s $KEYCHAIN_PATH
- name: Install debian certificate
if: matrix.os == 'ubuntu-latest'
env:
DEBIAN_GPG_KEY: ${{ secrets.DEBIAN_GPG_KEY }}
run: |
# import certificate from secrets
echo -n "$DEBIAN_GPG_KEY" >> $RUNNER_TEMP/key.gpg
gpg --import $RUNNER_TEMP/key.gpg
- name: Install dependencies
run: pnpm install --frozen-lockfile

Expand Down Expand Up @@ -110,6 +120,7 @@ jobs:
MATRIX_OS: ${{ matrix.os }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_SHA: ${{ inputs.commitSha }}
XATA_DEB_KEY: ${{ secrets.DEBIAN_GPG_KEY_ID }}

- name: Clean up keychain
if: matrix.os == 'macos-latest'
Expand Down
12 changes: 5 additions & 7 deletions scripts/release-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,15 @@ async function main() {
execFile('rm', ['-rf', `${PATH_TO_CLI}/npm-shrinkwrap.json`]);
execFile('touch', [`${PATH_TO_CLI}/npm-shrinkwrap.json`]);

const platform = matrixToOclif(process.env.MATRIX_OS);

// Tarballs
await exec(`pnpm oclif pack tarballs --targets=${platformDistributions(platform)}`);
await exec(`pnpm oclif pack tarballs --targets=${platformDistributions(operatingSystem)}`);
//Packages
await exec(`pnpm oclif pack ${platform}`);
await exec(`pnpm oclif pack ${operatingSystem}`);
// Upload Tarballs
await uploadS3(platform);
await uploadS3(operatingSystem);
// Upload packages
await uploadS3(platform, { pkg: true });
await promoteS3(platform, version);
await uploadS3(operatingSystem, { pkg: true });
await promoteS3(operatingSystem, version);

const octokit = new Octokit({
auth: process.env.GITHUB_TOKEN
Expand Down

0 comments on commit aabe943

Please sign in to comment.