Skip to content

Commit e350f8e

Browse files
committed
ci release: add support for publishing to Launchpad
1 parent 2399c04 commit e350f8e

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/package.yml

+27-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ jobs:
185185
name: Release
186186
needs: prepare-for-release
187187
runs-on: ubuntu-latest
188-
timeout-minutes: 5
188+
timeout-minutes: 10
189+
environment: release
189190
steps:
190191
- uses: actions/checkout@v4
191192
- uses: actions/download-artifact@v4
@@ -209,3 +210,28 @@ jobs:
209210
release-artifacts/*
210211
env:
211212
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
213+
- name: Prepare for Launchpad publishing
214+
run: |
215+
cp release-artifacts/release-source/groonga-normalizer-mysql-*.tar.gz ./
216+
sudo apt update
217+
sudo apt install -y \
218+
devscripts \
219+
gpg
220+
- uses: actions/checkout@v4
221+
with:
222+
path: apache-arrow
223+
repository: apache/arrow
224+
- uses: actions/checkout@v4
225+
with:
226+
path: groonga
227+
repository: groonga/groonga
228+
- name: Publish to Launchpad
229+
env:
230+
APACHE_ARROW_REPOSITORY: ${{ github.workspace }}/apache-arrow
231+
GROONGA_REPOSITORY: ${{ github.workspace }}/groonga
232+
LAUNCHPAD_DEPLOY_KEY: ${{ secrets.LAUNCHPAD_DEPLOY_KEY }}
233+
LAUNCHPAD_UPLOADER_PGP_KEY: "0x32862FBCD63D72C152EFF3A9BD481CAA9168EA87"
234+
run: |
235+
echo "${LAUNCHPAD_DEPLOY_KEY}" | gpg --import
236+
echo "trusted-key ${LAUNCHPAD_UPLOADER_PGP_KEY}" > ~/.gnupg/gpg.conf
237+
rake -C packages ubuntu

0 commit comments

Comments
 (0)