summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorClementTsang <cjhtsang@uwaterloo.ca>2020-08-23 23:24:06 -0400
committerClementTsang <cjhtsang@uwaterloo.ca>2020-08-23 23:45:34 -0400
commitf1371b8d9f8d471fe89baef2d5b6b34175ebe668 (patch)
treeb1940e08ff55fe135a22917f3dbba007354c4354 /.github
parent52a21b9bec054e98f35a4af9926325ca0c8f0477 (diff)
ci: Fix some incorrect behaviour caused by deployment script
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yml23
1 files changed, 22 insertions, 1 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index b9db66ee..a206f256 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -8,12 +8,33 @@ jobs:
set_env:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v1
- name: Set env
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
- name: Test env
run: |
echo $RELEASE_VERSION
+ update_homebrew:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Download packages
+ run: |
+ curl -LO "https://github.com/ClementTsang/bottom/releases/download/$RELEASE_VERSION/bottom_x86_64-unknown-linux-gnu.tar.gz";
+ curl -LO "https://github.com/ClementTsang/bottom/releases/download/$RELEASE_VERSION/bottom_x86_64-apple-darwin.tar.gz";
+ - name: Execute packaging script
+ run: |
+ python "./deployment/packager.py" $RELEASE_VERSION "./deployment/macos/homebrew/bottom.rb.template" "./bottom.rb" "SHA256" "./bottom_x86_64-apple-darwin.tar.gz" "./bottom_x86_64-unknown-linux-gnu.tar.gz";
+ - name: Upload bottom.rb to release
+ uses: svenstaro/upload-release-action@2.1.0
+ with:
+ repo_token: ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }}
+ file: bottom.rb
+ tag: ${{ $RELEASE_VERSION }}
+ overwrite: true
+ update_packages:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
- name: Trigger homebrew
run: |
curl -X POST https://api.github.com/repos/ClementTsang/homebrew-bottom/dispatches \