Skip to content

Commit

Permalink
Merge pull request #188 from marp-team/vsix-release
Browse files Browse the repository at this point in the history
Add GitHub Actions workflow to upload packaged VSIX into release page
  • Loading branch information
yhatt authored Dec 5, 2020
2 parents 72e9016 + b5acc43 commit 0532261
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,31 @@ jobs:
with:
task: release
token: ${{ secrets.GITHUB_TOKEN }}

upload-vsix:
needs: github-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Detect Node version from .nvmrc
id: node_version
run: echo "::set-output name=nvmrc::$(cat .nvmrc)"

- uses: actions/setup-node@v1
with:
node-version: ${{ steps.node_version.outputs.nvmrc }}

- run: npm ci
- run: npm run package

- name: Find out created VSIX
id: vsix
run: echo "::set-output name=name::$(find . -maxdepth 1 -name '*.vsix' -printf '%f\n' | head -n 1)"

- name: Upload VSIX to GitHub Release
uses: marp-team/actions@v1
with:
task: upload
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ steps.vsix.outputs.name }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Added

- GitHub Actions workflow to upload packaged VSIX into release page ([#182](https://github.com/marp-team/marp-vscode/issues/182), [#188](https://github.com/marp-team/marp-vscode/pull/188))

### Changed

- Upgrade to [Marp Core v1.4.0](https://github.com/marp-team/marp-core/releases/v1.4.0) ([#186](https://github.com/marp-team/marp-vscode/pull/186))
Expand Down

0 comments on commit 0532261

Please sign in to comment.