mirror of
https://github.com/OMGeeky/ATCS.git
synced 2025-12-30 00:03:29 +01:00
Compare commits
5 Commits
miss-effec
...
fix-releas
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8399ae60ee | ||
|
|
1b643f4aa1 | ||
|
|
4293095e8e | ||
|
|
5f2927e00c | ||
|
|
79eddde155 |
33
.github/workflows/release.yml
vendored
33
.github/workflows/release.yml
vendored
@@ -3,10 +3,11 @@ name: Release Build
|
|||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [ created ]
|
types: [ created ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -35,22 +36,34 @@ jobs:
|
|||||||
cd packaging
|
cd packaging
|
||||||
chmod +x package.sh
|
chmod +x package.sh
|
||||||
echo "Building JAR and ZIP for version: ${{ env.VERSION }}"
|
echo "Building JAR and ZIP for version: ${{ env.VERSION }}"
|
||||||
./package.sh -windows
|
./package.sh
|
||||||
echo "Created artifacts:"
|
echo "Created artifacts:"
|
||||||
ls -la common/ATCS.jar
|
ls -la common/ATCS.jar
|
||||||
ls -la ATCS_${{ env.VERSION }}.zip
|
ls -la ATCS_${{ env.VERSION }}.zip
|
||||||
|
|
||||||
- name: Install NSIS
|
- name: Upload Release Assets (zip)
|
||||||
uses: joncloud/makensis-action@v4
|
|
||||||
with:
|
|
||||||
script-file: packaging/Windows/ATCS_Installer.nsi
|
|
||||||
arguments: /DVERSION="${{ env.VERSION }}"
|
|
||||||
|
|
||||||
- name: Upload Release Assets
|
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
./packaging/ATCS_${{ env.VERSION }}.zip
|
./packaging/ATCS_${{ env.VERSION }}.zip
|
||||||
./packaging/ATCS_${{ env.VERSION }}_Setup.exe
|
|
||||||
|
- name: 'Install makensis (apt)'
|
||||||
|
run: sudo apt update && sudo apt install -y nsis nsis-pluginapi
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Create Windows-Installer with NSIS
|
||||||
|
uses: joncloud/makensis-action@v4
|
||||||
|
with:
|
||||||
|
script-file: packaging/Windows/ATCS_Installer.nsi
|
||||||
|
arguments: -DVERSION="${{ env.VERSION }}"
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Upload Release Assets (exe)
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
files: ./packaging/ATCS_${{ env.VERSION }}_Setup.exe
|
||||||
|
continue-on-error: true
|
||||||
|
|||||||
Reference in New Issue
Block a user