mirror of
https://github.com/OMGeeky/ATCS.git
synced 2026-01-07 03:56:55 +01:00
Compare commits
3 Commits
package-im
...
v0.6.21-pr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fe7e71a43 | ||
|
|
9a162ac58d | ||
|
|
93718230a5 |
34
.github/workflows/release.yml
vendored
34
.github/workflows/release.yml
vendored
@@ -11,6 +11,18 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Get Version
|
||||||
|
id: get_version
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
pwd
|
||||||
|
echo "Reading version from file:"
|
||||||
|
cat packaging/ATCS_latest
|
||||||
|
VERSION=$(cat packaging/ATCS_latest | sed 's/^v//')
|
||||||
|
echo "Processed version: $VERSION"
|
||||||
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
echo "Environment variable set to: $VERSION"
|
||||||
|
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
@@ -23,22 +35,22 @@ jobs:
|
|||||||
- name: Build JAR
|
- name: Build JAR
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd ATCS/packaging
|
pwd
|
||||||
|
cd packaging
|
||||||
|
pwd
|
||||||
chmod +x package.sh
|
chmod +x package.sh
|
||||||
./package.sh -windows
|
./package.sh -windows
|
||||||
|
|
||||||
- name: Create Installer
|
- name: Create Installer
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd ATCS/packaging/Windows
|
pwd
|
||||||
|
cd packaging/Windows
|
||||||
|
pwd
|
||||||
|
ls -la
|
||||||
makensis ATCS_Installer.nsi
|
makensis ATCS_Installer.nsi
|
||||||
|
echo "Checking installer artifacts:"
|
||||||
- name: Get Version
|
ls -la
|
||||||
id: get_version
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
VERSION=$(cat ATCS/packaging/ATCS_latest | sed 's/^v//')
|
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Upload ZIP to Release
|
- name: Upload ZIP to Release
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
@@ -46,7 +58,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
upload_url: ${{ github.event.release.upload_url }}
|
||||||
asset_path: ./ATCS/packaging/ATCS_${{ env.VERSION }}.zip
|
asset_path: ./packaging/ATCS_${{ env.VERSION }}.zip
|
||||||
asset_name: ATCS_${{ env.VERSION }}.zip
|
asset_name: ATCS_${{ env.VERSION }}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
@@ -56,6 +68,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
upload_url: ${{ github.event.release.upload_url }}
|
||||||
asset_path: ./ATCS/packaging/Windows/ATCS_v${{ env.VERSION }}_Setup.exe
|
asset_path: ./packaging/Windows/ATCS_v${{ env.VERSION }}_Setup.exe
|
||||||
asset_name: ATCS_v${{ env.VERSION }}_Setup.exe
|
asset_name: ATCS_v${{ env.VERSION }}_Setup.exe
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
|
|||||||
Reference in New Issue
Block a user