Skip to content

Commit

Permalink
squash! Preparing for... Zero, zero, one dot two Will build many things
Browse files Browse the repository at this point in the history
checkpoint
  • Loading branch information
John-LittleBearLabs committed Sep 5, 2024
1 parent d772222 commit 4537071
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
workflow_dispatch:
release:
types: [created, published, released]
types: [created]
jobs:
prechecks:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -96,6 +96,7 @@ jobs:
brew install cmake
brew install ninja
brew install conan
brew install ghapi
ninja --version
cmake --version
which c++
Expand Down Expand Up @@ -142,10 +143,9 @@ jobs:
shell: bash
run: cmake --build build --config ${{ matrix.config.build_type }} --target package
- name: Upload to release
if: github.event_name == 'release' && matrix.config.build_type == 'Release'
if: (github.event_name == 'release' || github.event_name == 'workflow_dispatch') && matrix.config.build_type == 'Release'
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
cd build
python3 ../cmake/release.py --library-only
gh upload `python3 ./cmake/version.py` build/ipfs-client*
2 changes: 1 addition & 1 deletion cmake/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
try:
from ghapi.all import GhApi
except ModuleNotFoundError:
check_call([executable, '-m', 'pip', 'install', 'ghapi'])
check_call([executable, '-m', 'pip', '--user', 'install', 'ghapi'])
from ghapi.all import GhApi

build_dir = getcwd()
Expand Down

0 comments on commit 4537071

Please sign in to comment.