-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,14 +107,56 @@ jobs: | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_UPDATER_KEY }} | ||
CI: false | ||
run: npm install && npm run tauri:build | ||
- name: debug ls | ||
run: ls src-tauri/target/release/bundle/ | ||
- name: create timestamp | ||
run: echo "NOW=$(date +'%Y-%m-%dT%H:%M:%S%z')" >> $GITHUB_ENV | ||
- name: read signatures | ||
env: | ||
FILES: src-tauri/target/release/bundle/appimage/*.AppImage.tar.gz.sig src-tauri/target/release/bundle/macos/freedeck-configurator.app.tar.gz.sig src-tauri/target/release/bundle/msi/*.msi.zip.sig | ||
run: | | ||
echo "APPIMAGE=$(src-tauri/target/release/bundle/appimage/*.AppImage.tar.gz.sig)" >> $GITHUB_ENV | ||
echo "MACAPP=$(src-tauri/target/release/bundle/macos/freedeck-configurator.app.tar.gz.sig)" >> $GITHUB_ENV | ||
echo "WINDOWS=$(src-tauri/target/release/bundle/msi/*.msi.zip.sig)" >> $GITHUB_ENV | ||
- name: create-json | ||
id: create-json | ||
uses: jsdaniell/[email protected] | ||
with: | ||
name: "updater.json" | ||
json: | | ||
{ | ||
"version": "${{ env.PACKAGE_VERSION }}", | ||
"pub_date": "${{ env.NOW }}", | ||
"platforms": { | ||
"linux-x86_64": { | ||
"url": "https://github.com/FreeYourStream/freedeck-configurator/releases/download/dev/freedeck-configurator_${{ env.PACKAGE_VERSION }}_amd64.AppImage.tar.gz.sig", | ||
"signature": "${{ env.APPIMAGE }}" | ||
}, | ||
"darwin-x86_64": { | ||
"url": "https://github.com/FreeYourStream/freedeck-configurator/releases/download/dev/freedeck-configurator.app.tar.gz.sig", | ||
"signature": "${{ env.MACAPP }}" | ||
}, | ||
"windows-x86_64": { | ||
"url": "https://github.com/FreeYourStream/freedeck-configurator/releases/download/dev/freedeck-configurator_${{ env.PACKAGE_VERSION }}_x64_en-US.msi.tar.gz.sig", | ||
"signature": "${{ env.WINDOWS }}" | ||
} | ||
} | ||
} | ||
dir: 'src-tauri/' | ||
- name: Deploy | ||
# You may pin to the exact commit or the version. | ||
# uses: SamKirkland/FTP-Deploy-Action@da0d77ff390a13097c60f9b9eb954e503a480d97 | ||
uses: easingthemes/[email protected] | ||
with: | ||
REMOTE_HOST: "78.47.56.63" | ||
REMOTE_USER: githubactions | ||
TARGET: "/var/www/fddev.freeyourstream.com/updater.json" | ||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | ||
# The local folder to copy, defaults to root project folder | ||
SOURCE: "src-tauri/updater.json" | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
artifacts: src-tauri/target/release/bundle/appimage/*.AppImage.tar.gz,src-tauri/target/release/bundle/appimage/*.AppImage.tar.gz.sig,src-tauri/target/release/bundle/deb/*.deb,src-tauri/target/release/bundle/deb/*.deb.sig,src-tauri/target/release/bundle/dmg/*.dmg,src-tauri/target/release/bundle/dmg/*.dmg.sig,src-tauri/target/release/bundle/macos/freedeck-configurator.app.tar.gz,src-tauri/target/release/bundle/macos/freedeck-configurator.app.tar.gz.sig,src-tauri/target/release/bundle/msi/*.msi.zip,src-tauri/target/release/bundle/msi/*.msi.zip.sig | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
body: always up-to-date. maybe unstable | ||
tag: "dev" | ||
|
||
commit: develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters