From 199ac31d30904ed0a88a5131dbdbec46a6819f34 Mon Sep 17 00:00:00 2001 From: Nicolas Duchon Date: Wed, 9 Mar 2022 16:41:51 +0100 Subject: [PATCH] ci: build and upload GitHub release assets in GHA --- .github/workflows/assets.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/assets.yml diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml new file mode 100644 index 00000000..93085bd9 --- /dev/null +++ b/.github/workflows/assets.yml @@ -0,0 +1,29 @@ +name: Release assets + +on: + push: + tags: + - '*.*.*' + +jobs: + assets: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 1 + + - name: Build release assets + run: make release + + - name: Upload release assets + uses: alexellis/upload-assets@0.3.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + asset_paths: '["./docker-gen-*.tar.gz"]' + + - name: Cleanup release assets + run: make dist-clean