Skip to content

Commit

Permalink
Add GitHub release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Nov 25, 2019
1 parent 5c1d1c3 commit 72473da
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Create Release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Install dependencies
run: npm install

- name: Compile assets
run: npm run production

- name: Create zip
run: cd resources && tar -czvf dist.tar.gz dist

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}

- name: Upload zip to release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./resources/dist.tar.gz
asset_name: dist.tar.gz
asset_content_type: application/tar+gz

0 comments on commit 72473da

Please sign in to comment.