mirror of
https://github.com/open-goal/launcher.git
synced 2024-10-20 04:57:38 -04:00
added automated release workflow
This commit is contained in:
parent
999378e543
commit
0acc86cc8a
48
.github/workflows/release.yml
vendored
Normal file
48
.github/workflows/release.yml
vendored
Normal 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}}
|
Loading…
Reference in a new issue