Skip to content

Merge pull request #376 from Shopify/grodowski/flaky-test-fix-round-2 #72

Merge pull request #376 from Shopify/grodowski/flaky-test-fix-round-2

Merge pull request #376 from Shopify/grodowski/flaky-test-fix-round-2 #72

Workflow file for this run

name: Package and release on Github
on:
push:
branches:
- main
jobs:
build-debs:
strategy:
matrix:
runner: [ubuntu-latest, shopify-ubuntu-arm64]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.16
- name: Building Ghostferry
run: .github/workflows/build-deb.sh
- name: Upload debs
uses: actions/upload-artifact@v4
with:
name: debs-${{ github.sha }}-${{ matrix.runner }}
path: build/ghostferry*
release:
runs-on: ubuntu-latest
needs: build-debs
steps:
- uses: actions/checkout@v4
- name: Fetch uploaded artifacts
uses: actions/download-artifact@v4
with:
pattern: debs-${{ github.sha }}-*
merge-multiple: true
- name: shasum
shell: bash
run: |
sha256sum *.deb > ghostferry-$GITHUB_SHA.sha256sum
echo "sha256sum:"
cat ghostferry-$GITHUB_SHA.sha256sum
- name: Releasing Ghostferry to Github
run: gh release create --target ${GITHUB_REF#refs/heads/} -p release-${GITHUB_SHA::7} ghostferry*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}