Skip to content

Commit

Permalink
feat(github): add distribution zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
pathurs committed Sep 20, 2020
1 parent 9bd6032 commit 803aefa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/nodejs-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,8 @@ jobs:
- name: Run Build
run: npm run distribute

- nam: Zip Build
run: zip -r build.zip ./distribute/

- name: Run Semantic Release
run: npx semantic-release
10 changes: 8 additions & 2 deletions source/semantic-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,14 @@ const github = [
{
assets: [
{
label: 'NPM package (.tgz)',
path: 'colonise-config-*.tgz'
label: `Colonise ${packageName} <%= nextRelease.gitTag %> NPM package`,
name: `colonise-${packageNameLower}-<%= nextRelease.gitTag %>.tgz`,
path: `colonise-${packageNameLower}-<%= nextRelease.gitTag %>.tgz`
},
{
label: `Colonise ${packageName} <%= nextRelease.gitTag %> distribution`,
name: `colonise-${packageNameLower}-<%= nextRelease.gitTag %>.zip`,
path: './build.zip'
}
],
successComment: `This <%= issue.pull_request ? 'pull request has been included in' : 'issue has been resolved in' %> **[release <%= nextRelease.gitTag %>](https://github.com/Colonise/${packageName}/releases/tag/<%= nextRelease.gitTag %>)**!
Expand Down

0 comments on commit 803aefa

Please sign in to comment.