Skip to content

Commit

Permalink
Add GitHub Releases deployment workflow
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
fwcd committed Oct 5, 2021
1 parent 8a34150 commit b02fc8f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy-to-github-releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to GitHub Releases
on:
push:
tags:
- '*'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: '12'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Compile grammar
run: npm run generate
- name: Build WASM binary
run: npm run build-wasm
- name: Create GitHub release
uses: ncipollo/release-action@v1
with:
artifacts: tree-sitter-kotlin.wasm
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b02fc8f

Please sign in to comment.