diff options
author | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-08-19 10:27:57 -0400 |
---|---|---|
committer | ClementTsang <cjhtsang@uwaterloo.ca> | 2020-08-19 10:27:57 -0400 |
commit | a7b8d456820f5ce4c7771f64874a53c3c35f7936 (patch) | |
tree | 82b925e51c2cd1dfd1bd46070a5872f4a28a1e94 | |
parent | b2a00d49f17b60ec5fcb68ca819d6e79f9c69014 (diff) |
Add deploy github script
-rw-r--r-- | .github/workflows/deploy.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..b5d4a9b2 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,28 @@ +name: Update Packages + +on: + release: + types: [published] + +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 + - name: Trigger homebrew + run: | + curl -X POST https://api.github.com/repos/ClementTsang/homebrew-bottom/dispatches \ + -H 'Accept: application/vnd.github.everest-preview+json' \ + -u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \ + --data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }' + - name: Trigger choco + run: | + curl -X POST https://api.github.com/repos/ClementTsang/choco-bottom/dispatches \ + -H 'Accept: application/vnd.github.everest-preview+json' \ + -u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \ + --data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }' |