Skip to content

Merge pull request #350 from rdupon/patch-1 #35

Merge pull request #350 from rdupon/patch-1

Merge pull request #350 from rdupon/patch-1 #35

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@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Building Ghostferry
run: .github/workflows/build-deb.sh
- name: Upload debs
uses: actions/upload-artifact@v3
with:
name: debs-${{ github.sha }}
path: build/ghostferry*
release:
runs-on: ubuntu-latest
needs: build-debs
steps:
- uses: actions/checkout@v2
- name: Fetch uploaded artifacts
uses: actions/download-artifact@v3
with:
name: debs-${{ github.sha }}
- 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 }}