Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: disable AUR packaging #551

Merged
merged 1 commit into from
Jul 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 2 additions & 43 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# How we deploy a release. Covers binary builds. Also manages packaging for AUR, winget, choco, and homebrew.
# How we deploy a release. Covers binary builds. Also manages packaging for winget, choco, and homebrew.
#
# Based on:
# - https://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/release.yml
# Based on https://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/release.yml

name: deployment

Expand Down Expand Up @@ -298,28 +297,6 @@ jobs:
asset_name: bottom_${{ env.RELEASE_VERSION }}_amd64.deb
asset_content_type: application/octet-stream

- name: Build AUR PKGBUILD (Linux x86-64 GNU)
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
run: |
curl -LO "https://github.com/ClementTsang/bottom/archive/${{ env.RELEASE_VERSION }}.tar.gz"
python "./deployment/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/linux/arch/PKGBUILD.template" "./PKGBUILD" "SHA512" "./${{ env.RELEASE_VERSION }}.tar.gz"

- name: Tar AUR PKGBUILD (Linux x86-64 GNU)
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
run: |
tar -czvf arch_PKGBUILD.tar.gz PKGBUILD

- name: Upload AUR PKGBUILD (Linux x86-64 GNU)
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ env.RELEASE_UPLOAD_URL }}
asset_path: arch_PKGBUILD.tar.gz
asset_name: arch_PKGBUILD.tar.gz
asset_content_type: application/octet-stream

additional-file-generation:
needs: [build-release]
name: additional-file-generation
Expand Down Expand Up @@ -380,24 +357,6 @@ jobs:
asset_name: bottom.rb
asset_content_type: application/octet-stream

- name: Build AUR PKGBUILD-bin
run: |
python "./deployment/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/linux/arch/PKGBUILD_BIN.template" "./PKGBUILD" "SHA512" "./artifacts/bottom_x86_64-unknown-linux-gnu.tar.gz" "./artifacts/bottom_aarch64-unknown-linux-gnu.tar.gz" "./artifacts/bottom_armv7-unknown-linux-gnueabihf.tar.gz"

- name: Tar AUR PKGBUILD-bin
run: |
tar -czvf arch_PKGBUILD_bin.tar.gz PKGBUILD

- name: Upload AUR PKGBUILD-bin
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ env.RELEASE_UPLOAD_URL }}
asset_path: arch_PKGBUILD_bin.tar.gz
asset_name: arch_PKGBUILD_bin.tar.gz
asset_content_type: application/octet-stream

- name: Compress completion files (Linux x86-64 GNU)
if: matrix.triple.target == 'x86_64-unknown-linux-gnu' && matrix.triple.container == ''
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Creates nightly deployment builds for main targets. Note this does not cover package distribution channels,
# such as choco, AUR, Homebrew, etc.
# such as choco, Homebrew, etc.

name: nightly

Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,3 @@ jobs:
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \
--data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }'

- name: Trigger AUR
run: |
curl -X POST https://api.github.com/repos/ClementTsang/aur-bottom/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \
--data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }'