Nym Binaries v2024.13-magura-patched #61
Workflow file for this run
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
name: publish-nym-wallet-ubuntu | |
on: | |
workflow_dispatch: | |
release: | |
types: [created] | |
defaults: | |
run: | |
working-directory: nym-wallet | |
jobs: | |
publish-tauri: | |
if: ${{ (startsWith(github.ref, 'refs/tags/nym-wallet-') && github.event_name == 'release') || github.event_name == 'workflow_dispatch' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [custom-ubuntu-20.04] | |
runs-on: ${{ matrix.platform }} | |
outputs: | |
release_id: ${{ steps.create-release.outputs.id }} | |
release_date: ${{ fromJSON(steps.create-release.outputs.assets)[0].created_at }} | |
version: ${{ steps.release-info.outputs.version }} | |
filename: ${{ steps.release-info.outputs.filename }} | |
file_hash: ${{ steps.release-info.outputs.file_hash }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Tauri dependencies | |
run: > | |
sudo apt-get update && | |
sudo apt-get install -y webkit2gtk-4.0 | |
continue-on-error: true | |
- name: Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install Rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install project dependencies | |
shell: bash | |
run: cd .. && yarn --network-timeout 100000 | |
- name: Install app dependencies | |
run: yarn | |
- name: Create env file | |
uses: timheuer/[email protected] | |
with: | |
fileName: '.env' | |
encodedString: ${{ secrets.WALLET_ADMIN_ADDRESS }} | |
- name: Build app | |
run: yarn build | |
env: | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nym-wallet_1.0.0_amd64.AppImage.tar.gz | |
path: nym-wallet/target/release/bundle/appimage/nym-wallet*.AppImage.tar.gz | |
retention-days: 30 | |
- id: create-release | |
name: Upload to release based on tag name | |
uses: softprops/action-gh-release@v2 | |
if: github.event_name == 'release' | |
with: | |
files: | | |
nym-wallet/target/release/bundle/appimage/*.AppImage | |
nym-wallet/target/release/bundle/appimage/*.AppImage.tar.gz* | |
- name: Deploy artifacts to CI www | |
continue-on-error: true | |
uses: easingthemes/ssh-deploy@main | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.CI_WWW_SSH_PRIVATE_KEY }} | |
ARGS: "-avzr" | |
SOURCE: "nym-wallet/target/release/bundle/appimage/nym-wallet*.AppImage.tar.gz" | |
REMOTE_HOST: ${{ secrets.CI_WWW_REMOTE_HOST }} | |
REMOTE_USER: ${{ secrets.CI_WWW_REMOTE_USER }} | |
TARGET: ${{ secrets.CI_WWW_REMOTE_TARGET }}/builds/${{ github.ref_name }}/nym-wallet | |
EXCLUDE: "/dist/, /node_modules/" | |
push-release-data: | |
if: ${{ (startsWith(github.ref, 'refs/tags/nym-wallet-') && github.event_name == 'release') || github.event_name == 'workflow_dispatch' }} | |
uses: ./.github/workflows/release-calculate-hash.yml | |
needs: publish-tauri | |
with: | |
release_tag: ${{ github.ref_name }} | |
secrets: inherit |