Skip to content

Commit

Permalink
Merge pull request #1 from yu-ogi/fix-workflow
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
yu-ogi authored Aug 28, 2020
2 parents fe32657 + cf7a51d commit c0a5c8c
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/release_and_upload_assets.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
on:
push:
branches:
- master
# tags:
# - "v*"
tags:
- "v*"

name: Release and Upload Assets

Expand All @@ -14,12 +12,19 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install project
run: npm install
run: npm ci
- name: Build project
run: npm run build
- name: Bundle project
run: zip -r --junk-paths bundle.zip lib/
- name: Generate changelog
uses: scottbrenner/generate-changelog-action@master
id: changelog
env:
REPO: ${{ github.repository }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -28,10 +33,11 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit c0a5c8c

Please sign in to comment.