Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
added release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iliabylich committed Dec 9, 2021
1 parent 7fdca5e commit f8bbfb2
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: release

on:
push:
tags:
- 'v*'

defaults:
run:
shell: bash

jobs:
build-web:
name: build web
uses: lib-ruby-parser/wasm-bindings/.github/workflows/shared-build-and-test.yml@master
with:
node: '15'
target: no-modules
env: web

build-node:
name: build node
uses: lib-ruby-parser/wasm-bindings/.github/workflows/shared-build-and-test.yml@master
with:
node: '15'
target: nodejs
env: nodejs

create-release:
needs: ['build-web', 'build-node']
name: create release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- uses: actions/download-artifact@v2
with: { name: web-lib-ruby-parser.js }
- uses: actions/download-artifact@v2
with: { name: web-lib-ruby-parser.wasm }
- uses: actions/download-artifact@v2
with: { name: nodejs-lib-ruby-parser.js }
- uses: actions/download-artifact@v2
with: { name: nodejs-lib-ruby-parser.wasm }

- name: show artifacts
run: ls -l

- name: release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "web-lib-ruby-parser.*,nodejs-lib-ruby-parser.*"
token: ${{ secrets.GITHUB_TOKEN }}

2 changes: 1 addition & 1 deletion .github/workflows/shared-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defaults:

jobs:
build-and-test:
name: build and upload ${{ inputs.target }}
name: build, test and upload ${{ inputs.target }}
runs-on: ubuntu-latest
env:
TARGET: ${{ inputs.target }}
Expand Down

0 comments on commit f8bbfb2

Please sign in to comment.