Skip to content

Commit

Permalink
Add Github action for creating release
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyqiu committed Aug 6, 2020
1 parent effa76d commit d8b79c1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Create Github release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Run release script
run: sh ${GITHUB_WORKSPACE}/.github/workflows/release.sh

- name: Create a Release
uses: softprops/action-gh-release@v0.1.5
with:
# Newline-delimited list of path globs for asset files to upload
files: |
/tmp/formemailer.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .github/workflows/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

cd ${GITHUB_WORKSPACE}
zip -r "/tmp/formemailer.zip" "formemailer"

0 comments on commit d8b79c1

Please sign in to comment.