Skip to content

Commit

Permalink
chore: move pack windows script to separate workflow and update oclif…
Browse files Browse the repository at this point in the history
… version (#2593)

* chore: move pack windows job to separate workflow

* chore: upgrade oclif and fix command

* chore: upgrade to oclif 4.3.6

* chore: remove node setup
  • Loading branch information
k80bowman authored Jan 19, 2024
1 parent 17f9629 commit e6bc353
Show file tree
Hide file tree
Showing 4 changed files with 1,859 additions and 49 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pack-upload-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Pack and Upload Windows Installers

on:
workflow_dispatch:
workflow_call:

jobs:
pack-and-upload-windows:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true
steps:
- uses: actions/checkout@v3
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@41775cf0c82ef066f1eb39cea1bd74697ca5b735
- name: Install NSIS
run: brew install nsis
- name: yarn install
run: yarn --immutable --network-timeout 1000000
- name: pack windows installer
run: yarn oclif pack win --defender-exclusion hidden --root="./packages/cli"
- name: upload windows installer
run: yarn oclif upload win --root="./packages/cli"
25 changes: 1 addition & 24 deletions .github/workflows/pack-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,27 +103,4 @@ jobs:
cd packages/cli
pwd
yarn oclif upload tarballs
./scripts/upload/deb
pack-and-upload-windows:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: yarn
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@41775cf0c82ef066f1eb39cea1bd74697ca5b735
- name: Install NSIS
run: brew install nsis
- name: yarn install
run: yarn --immutable --network-timeout 1000000
- name: pack windows installer
run: oclif pack win --defender-exclusion hidden --root="./packages/cli"
- name: upload windows installer
run: oclif upload win --root="./packages/cli"
./scripts/upload/deb
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"execa": "5.1.1",
"lerna": "^6.4.1",
"mkdirp": "^0.5.2",
"oclif": "3.11.3",
"oclif": "4.3.6",
"promise-request-retry": "^1.0.2",
"qqjs": "0.3.11",
"standard": "12.0.1",
Expand Down
Loading

0 comments on commit e6bc353

Please sign in to comment.