Skip to content

Commit

Permalink
fix(packages): add permission for user in cli/bpm
Browse files Browse the repository at this point in the history
  • Loading branch information
morteza-jamali committed Jun 30, 2022
1 parent 62477f5 commit caabc85
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Get the version
uses: olegtarasov/get-tag@v2.1
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Clone repository
uses: actions/checkout@v3
- name: Compress files
run: |
cp ./packages/cli/bpm .
zip bpm-${{ steps.get_version.outputs.VERSION }}.zip ./bpm
zip bpm-${{ steps.get_version.outputs.tag }}.zip ./bpm
- name: Release archives
uses: softprops/action-gh-release@v1
with:
files: ./bpm-${{ steps.get_version.outputs.VERSION }}.zip
files: ./bpm-${{ steps.get_version.outputs.tag }}.zip
2 changes: 2 additions & 0 deletions packages/cli/bpm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ download() {
)
shift
done

chmod u+x $bin_path -R
}
# upload() {}

Expand Down
4 changes: 2 additions & 2 deletions packages/install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ ROOT_PATH=$HOME/.bpm

if ! command -v bpm &>/dev/null; then
cd $(mktemp -d)
curl -#LO https://github.com/morajlab/bpm/releases/download/v0.0.1-alpha.3/bpm-v0.0.1-alpha.3.zip
unzip bpm-v0.0.1-alpha.3.zip
curl -#LO https://github.com/morajlab/bpm/releases/download/v0.0.1-alpha.4/bpm-v0.0.1-alpha.4.zip
unzip bpm-v0.0.1-alpha.4.zip
mkdir $ROOT_PATH
mv bpm $ROOT_PATH/

Expand Down

0 comments on commit caabc85

Please sign in to comment.