mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
updated build workflow
I removed the nightly builds now, as the alpha builds are much more structured
This commit is contained in:
parent
a4a59b3edf
commit
9ef052bb69
42
.github/workflows/build-project-linux.yml
vendored
42
.github/workflows/build-project-linux.yml
vendored
|
@ -122,45 +122,3 @@ jobs:
|
||||||
# release the app after building
|
# release the app after building
|
||||||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
|
||||||
- name: LIST ALL FILES
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
ls -R
|
|
||||||
|
|
||||||
- name: chmod +x
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
chmod +x ./gui/dist/*.AppImage
|
|
||||||
|
|
||||||
|
|
||||||
- name: Create app bundle
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir gui-bundle
|
|
||||||
cp ./gui/dist/*.AppImage gui-bundle
|
|
||||||
cp -R ./tnc/dist/tnc gui-bundle
|
|
||||||
chmod +x ./gui-bundle/tnc/tnc
|
|
||||||
chmod +x ./gui-bundle/tnc/daemon
|
|
||||||
cd ./gui-bundle
|
|
||||||
zip -r FreeDATA_linux.zip .
|
|
||||||
ls -R
|
|
||||||
|
|
||||||
- name: Upload Ubuntu GUI Bundle artifacts
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: gui-bundle-ubuntu-artifact
|
|
||||||
path: ./gui-bundle/FreeDATA_linux.zip
|
|
||||||
|
|
||||||
- name: Release
|
|
||||||
uses: WebFreak001/deploy-nightly@v1.1.0
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: https://uploads.github.com/repos/DJ2LS/FreeDATA/releases/48616289/assets{?name,label} # find out this value by opening https://api.github.com/repos/<owner>/<repo>/releases in your browser and copy the full "upload_url" value including the {?name,label} part
|
|
||||||
release_id: 48616289 # same as above (id can just be taken out the upload_url, it's used to find old releases)
|
|
||||||
asset_path: ./gui-bundle/FreeDATA_linux.zip # path to archive to upload
|
|
||||||
asset_name: FreeDATA_linux-nightly-$$.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
|
|
||||||
asset_content_type: application/zip # required by GitHub API
|
|
||||||
max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
|
|
||||||
|
|
||||||
|
|
||||||
|
|
35
.github/workflows/build-project-mac.yml
vendored
35
.github/workflows/build-project-mac.yml
vendored
|
@ -111,38 +111,3 @@ jobs:
|
||||||
# release the app after building
|
# release the app after building
|
||||||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
|
||||||
- name: LIST ALL FILES
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
ls -R
|
|
||||||
|
|
||||||
- name: Create app bundle
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir gui-bundle
|
|
||||||
cp ./gui/dist/FreeDATA*.dmg gui-bundle
|
|
||||||
cd ./gui-bundle
|
|
||||||
zip -r FreeDATA_mac.zip .
|
|
||||||
|
|
||||||
- name: Upload macOS GUI Bundle artifacts
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: gui-bundle-ubuntu-artifact
|
|
||||||
path: ./gui-bundle/FreeDATA_mac.zip
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Release
|
|
||||||
uses: WebFreak001/deploy-nightly@v1.1.0
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: https://uploads.github.com/repos/DJ2LS/FreeDATA/releases/48616289/assets{?name,label} # find out this value by opening https://api.github.com/repos/<owner>/<repo>/releases in your browser and copy the full "upload_url" value including the {?name,label} part
|
|
||||||
release_id: 48616289 # same as above (id can just be taken out the upload_url, it's used to find old releases)
|
|
||||||
asset_path: ./gui-bundle/FreeDATA_mac.zip # path to archive to upload
|
|
||||||
asset_name: FreeDATA_mac-nightly-$$.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
|
|
||||||
asset_content_type: application/zip # required by GitHub API
|
|
||||||
max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
|
|
||||||
|
|
||||||
|
|
||||||
|
|
61
.github/workflows/build-project-win.yml
vendored
61
.github/workflows/build-project-win.yml
vendored
|
@ -72,7 +72,7 @@ jobs:
|
||||||
type: 'zip'
|
type: 'zip'
|
||||||
filename: 'FreeDATA_windows.zip'
|
filename: 'FreeDATA_windows.zip'
|
||||||
directory: ./tnc/dist/tnc
|
directory: ./tnc/dist/tnc
|
||||||
path: ./tnc/dist/tnc
|
path: .
|
||||||
#exclusions: '*.git* /*node_modules/* .editorconfig'
|
#exclusions: '*.git* /*node_modules/* .editorconfig'
|
||||||
|
|
||||||
- name: LIST ALL FILES
|
- name: LIST ALL FILES
|
||||||
|
@ -110,62 +110,3 @@ jobs:
|
||||||
# release the app after building
|
# release the app after building
|
||||||
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
|
||||||
- name: LIST ALL FILES
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
ls -R
|
|
||||||
|
|
||||||
|
|
||||||
- name: Create app bundle
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir gui-bundle
|
|
||||||
cp -R ./gui/dist/win-unpacked/ gui-bundle
|
|
||||||
cp -R ./tnc/dist/tnc gui-bundle/win-unpacked
|
|
||||||
|
|
||||||
- name: LIST ALL FILES
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
ls -R
|
|
||||||
|
|
||||||
|
|
||||||
- name: Archive Release
|
|
||||||
uses: thedoctor0/zip-release@master
|
|
||||||
with:
|
|
||||||
type: 'zip'
|
|
||||||
filename: 'FreeDATA_windows.zip'
|
|
||||||
directory: ./gui-bundle/win-unpacked/
|
|
||||||
path: .
|
|
||||||
#exclusions: '*.git* /*node_modules/* .editorconfig'
|
|
||||||
|
|
||||||
- name: Release TNC
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
|
||||||
with:
|
|
||||||
files: ./tnc/dist/compressed/${{ matrix.zip_name }}.zip
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Upload Windows GUI Bundle artifacts
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: gui-bundle-windows-artifact
|
|
||||||
path: ./gui-bundle/win-unpacked/FreeDATA_windows.zip
|
|
||||||
|
|
||||||
- name: LIST ALL FILES
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
ls -R
|
|
||||||
|
|
||||||
- name: Release
|
|
||||||
uses: WebFreak001/deploy-nightly@v1.1.0
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: https://uploads.github.com/repos/DJ2LS/FreeDATA/releases/48616289/assets{?name,label} # find out this value by opening https://api.github.com/repos/<owner>/<repo>/releases in your browser and copy the full "upload_url" value including the {?name,label} part
|
|
||||||
release_id: 48616289 # same as above (id can just be taken out the upload_url, it's used to find old releases)
|
|
||||||
asset_path: ./gui-bundle/win-unpacked/FreeDATA_windows.zip # path to archive to upload
|
|
||||||
asset_name: FreeDATA_windows-nightly-$$.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash
|
|
||||||
asset_content_type: application/zip # required by GitHub API
|
|
||||||
max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue