Skip to content

Commit

Permalink
add template archive creation
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jan 27, 2021
1 parent 5647c14 commit f0467f3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ jobs:
dpkg-deb --build debian
mv debian.deb bcg-${{ steps.vars.outputs.tag }}.deb
- name: Build templates archive
run: |
tar -czvf templates-${{ steps.vars.outputs.tag }}.tar.gz templates/*
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down Expand Up @@ -90,5 +94,15 @@ jobs:
asset_name: bcg-${{ steps.vars.outputs.tag }}-amd64
asset_content_type: application/x-deb

- name: Upload templates archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./templates-${{ steps.vars.outputs.tag }}.tar.gz
asset_name: templates-${{ steps.vars.outputs.tag }}.tar.gz
asset_content_type: application/gzip

- name: Update debian repo
run: curl -F package=@bcg-${{ steps.vars.outputs.tag }}.deb https://${{ secrets.TOKEN }}@push.fury.io/natesales/

0 comments on commit f0467f3

Please sign in to comment.