-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from MissouriMRDT/topic/2023-release
Create Auto RED Builder
- Loading branch information
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |