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