aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release_builds.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release_builds.yml')
-rw-r--r--.github/workflows/release_builds.yml51
1 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/release_builds.yml b/.github/workflows/release_builds.yml
new file mode 100644
index 0000000..bc3dac6
--- /dev/null
+++ b/.github/workflows/release_builds.yml
@@ -0,0 +1,51 @@
+name: Release CI
+on:
+ release:
+ types: [ prereleased ]
+jobs:
+ build-windows:
+ name: "Create Windows release builds"
+ runs-on: "windows-latest"
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+ - name: Setup Node environment
+ uses: actions/setup-node@v3
+ with:
+ node-version: 16
+ - name: Install dependencies
+ run: npm install
+ - name: Create builds
+ run: npm run build:windows
+ - name: Upload production artifacts to release
+ uses: xresloader/upload-to-github-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ file: "dist/*.exe*;dist/latest.yml"
+ release_id: ${{ github.event.release.id }}
+ draft: false
+ prerelease: true
+ build-linux:
+ name: "Create Linux release builds"
+ runs-on: "ubuntu-latest"
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+ - name: Setup Node environment
+ uses: actions/setup-node@v3
+ with:
+ node-version: 16
+ - name: Install dependencies
+ run: npm install
+ - name: Create builds
+ run: npm run build:linux
+ - name: Upload production artifacts to release
+ uses: xresloader/upload-to-github-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ file: "dist/*.AppImage;dist/*.tar.gz;dist/*.deb;dist/*.rpm;dist/latest-linux.yml"
+ release_id: ${{ github.event.release.id }}
+ draft: false
+ prerelease: true