Add release script

This commit is contained in:
Roland Rabien 2023-08-31 11:52:11 -07:00
commit 8d919d4344
2 changed files with 57 additions and 0 deletions

49
.github/workflows/release.yaml vendored Normal file
View file

@ -0,0 +1,49 @@
name: Release
on:
push:
tags:
- '**'
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: "Run script"
run: |
./ci/build.sh
shell: bash
env:
APPLICATION: ${{ secrets.APPLICATION }}
INSTALLER: ${{ secrets.INSTALLER }}
APPLE_PASS: ${{ secrets.APPLE_PASS }}
APPLE_USER: ${{ secrets.APPLE_USER }}
APIKEY: ${{ secrets.APIKEY }}
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Binaries
path: ci/bin
retention-days: 30
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Download Artifacts
uses: actions/download-artifact@v3
- name: Create Release
run: ./release.sh
shell: bash

8
release.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash -e
set -x
cd "$(dirname "$0")"
cd ..
ROOT=$(pwd)
gh release create "nexus_$GITHUB_REF_NAME" -F Changelist.txt ../Binaries/*.zip