diff options
Diffstat (limited to '.github/workflows/post-deploy.yml')
-rw-r--r-- | .github/workflows/post-deploy.yml | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/.github/workflows/post-deploy.yml b/.github/workflows/post-deploy.yml index 9f7ff103..425fe299 100644 --- a/.github/workflows/post-deploy.yml +++ b/.github/workflows/post-deploy.yml @@ -4,8 +4,6 @@ on: release: types: [published] -# TODO: Move the homebrew and choco steps back to the main deployment script. - jobs: post-deploy: runs-on: ubuntu-latest @@ -25,41 +23,6 @@ jobs: exit 1 fi - - 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"; - curl -LO "https://github.com/ClementTsang/bottom/releases/download/$RELEASE_VERSION/bottom_i686-pc-windows-msvc.zip"; - curl -LO "https://github.com/ClementTsang/bottom/releases/download/$RELEASE_VERSION/bottom_x86_64-pc-windows-msvc.zip"; - - - name: Execute choco packaging script - run: | - python "./deployment/windows/choco/choco_packager.py" "bottom_i686-pc-windows-msvc.zip" "bottom_x86_64-pc-windows-msvc.zip" $RELEASE_VERSION "./deployment/windows/choco/bottom.nuspec.template" "./deployment/windows/choco/chocolateyinstall.ps1.template" "./deployment/windows/choco/bottom.nuspec" "./deployment/windows/choco/tools/chocolateyinstall.ps1" "./deployment/windows/choco/tools/" - cd ./deployment/windows/choco - zip -r choco.zip "bottom.nuspec" "tools" - cd ../../../ - cp ./deployment/windows/choco/choco.zip . - - - name: Upload choco.zip to release - uses: svenstaro/upload-release-action@2.1.0 - with: - repo_token: ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} - file: choco.zip - tag: ${{ env.RELEASE_VERSION }} - overwrite: true - - - name: Execute Homebrew 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: ${{ env.RELEASE_VERSION }} - overwrite: true - - name: Trigger homebrew run: | curl -X POST https://api.github.com/repos/ClementTsang/homebrew-bottom/dispatches \ |