Skip to content

Commit

Permalink
Merge pull request #256 from MissouriMRDT/topic/2023-release
Browse files Browse the repository at this point in the history
Create Auto RED Builder
  • Loading branch information
wiidler authored Oct 17, 2023
2 parents 9eee21f + f8f5249 commit 01877e7
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/deploy_basestation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Build and Create BaseStation Release

on:
push:
tags:
- 'v*'
workflow_dispatch:

permissions:
contents: write
pull-requests: read
packages: read
id-token: write

concurrency:
group: 'create-release'
cancel-in-progress: false

jobs:
build-and-publish:
strategy:
fail-fast: false
matrix:
os: [windows-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 16

- name: Install Yarn Packages
run: |
yarn install --frozen-lockfile --network-timeout 300000
- name: Build Package
run: yarn package

- name: Determine Version
id: version
run: |
echo ${{ github.ref_name }} >> $GITHUB_ENV
- name: Rename Package
run: mv "release/RED Setup 2.3.0.exe" "RED.${{ github.ref_name }}.Installer.exe"

- name: Create Zip
uses: vimtor/action-zip@v1.1
with:
files: 'release/win-unpacked/'
recursive: true
dest: 'RED.${{ github.ref_name }}.Unpacked.zip'

- name: Create Release
uses: softprops/action-gh-release@v1
with:
draft: true
prerelease: true
name: '${{ github.ref_name }}'
files: |
RED.${{ github.ref_name }}.Installer.exe
RED.${{ github.ref_name }}.Unpacked.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 01877e7

Please sign in to comment.