added automated release workflow

This commit is contained in:
trippjoe 2022-03-30 14:47:21 -04:00
parent 999378e543
commit 0acc86cc8a

48
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,48 @@
name: Automated Release
on:
pull_request:
push:
branches: [ feature/testing ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
node: 16.x
steps:
- name: Clone git repository
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build the Executables
run: npm run make
- name: Create a Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v0.${{ github.run_number}}
release_name: Release v0.${{ github.run_number }}
- name: Upload Release
uses: actions/upload-release-asset@v1
evn:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url}}
asset_path: ./out
asset_name: launcher-v${{ github.run_number}}