Skip to content

Commit

Permalink
Uniformise artifacts naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chralu committed Aug 5, 2024
1 parent 18015d8 commit 47aa8d2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 22 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-chrome-ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ jobs:
- name: Zip build folder
run: |
echo "Creating zip file..."
(cd chrome-extension; 7z a -tzip ../../chrome-extension-build-${{ steps.get_version.outputs.version_app }}.zip ./)
(cd chrome-extension; 7z a -tzip ../../archethic-wallet-chrome-extension-${{ steps.get_version.outputs.version_app }}.zip ./)
working-directory: build

- name: Upload artifact
- name: Upload artifact to action
uses: actions/upload-artifact@v4
with:
name: chrome-extension-build-${{ steps.get_version.outputs.version_app }}
path: chrome-extension-build-${{ steps.get_version.outputs.version_app }}.zip
- name: Release
name: archethic-wallet-chrome-extension-${{ steps.get_version.outputs.version_app }}
path: archethic-wallet-chrome-extension-${{ steps.get_version.outputs.version_app }}.zip
- name: Upload artifact to release
uses: softprops/action-gh-release@v2
with:
files: chrome-extension-build-${{ steps.get_version.outputs.version_app }}.zip
files: archethic-wallet-chrome-extension-${{ steps.get_version.outputs.version_app }}.zip
13 changes: 7 additions & 6 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,22 @@ jobs:
- name: Generate AppImage
run: |
appimage-builder --recipe AppImageBuilder.yml --skip-test
mv archethic_wallet-${{ steps.get_version.outputs.version_app }}-x86_64.AppImage archethic-wallet-linux-${{ steps.get_version.outputs.version_app }}-x86_64.AppImage
- name: Check files
run: |
ls -R
- name: Checksum
run: |
sha256sum archethic_wallet-${{ steps.get_version.outputs.version_app }}-x86_64.AppImage
sha256sum archethic-wallet-linux-${{ steps.get_version.outputs.version_app }}-x86_64.AppImage
- name: Upload AppImage Artifact
- name: Upload artifact to action
uses: actions/upload-artifact@v4
with:
name: archethic-wallet-${{ steps.get_version.outputs.version_app }}-appimage
path: archethic_wallet-${{ steps.get_version.outputs.version_app }}-x86_64.AppImage
- name: Release
name: archethic-wallet-linux-${{ steps.get_version.outputs.version_app }}-appimage
path: archethic-wallet-linux-${{ steps.get_version.outputs.version_app }}-x86_64.AppImage
- name: Upload artifact to release
uses: softprops/action-gh-release@v2
with:
files: archethic_wallet-${{ steps.get_version.outputs.version_app }}-x86_64.AppImage
files: archethic-wallet-linux-${{ steps.get_version.outputs.version_app }}-x86_64.AppImage
20 changes: 11 additions & 9 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,26 @@ jobs:
- name: Archive Artifact
run: |
mv build/windows/x64/runner/Release/ archethic-wallet
Compress-Archive -Path archethic-wallet -DestinationPath "artifacts/archethic-wallet-${{ steps.get_version.outputs.version_app }}.zip"
Compress-Archive -Path archethic-wallet -DestinationPath "artifacts/archethic-wallet-windows-${{ steps.get_version.outputs.version_app }}.zip"
- name: Checksum
run: |
sha256sum artifacts/archethic-wallet-${{ steps.get_version.outputs.version_app }}.zip
sha256sum artifacts/archethic-wallet-windows-${{ steps.get_version.outputs.version_app }}.zip
- name: Upload Artifact MSIX
- name: Upload msix artifact to action
uses: actions/upload-artifact@v4
with:
name: aewallet
path: artifacts/aewallet.msix
name: archethic-wallet-windows-${{ steps.get_version.outputs.version_app }}
path: artifacts/archethic-wallet-windows-${{ steps.get_version.outputs.version_app }}.msix

- name: Upload Artifact
- name: Upload zip artifact to action
uses: actions/upload-artifact@v4
with:
name: archethic-wallet-windows-${{ steps.get_version.outputs.version_app }}
path: artifacts/archethic-wallet-${{ steps.get_version.outputs.version_app }}.zip
- name: Release
path: artifacts/archethic-wallet-windows-${{ steps.get_version.outputs.version_app }}.zip
- name: Upload artifacts to release
uses: softprops/action-gh-release@v2
with:
files: artifacts/archethic-wallet-${{ steps.get_version.outputs.version_app }}.zip
files: |
artifacts/archethic-wallet-windows-${{ steps.get_version.outputs.version_app }}.zip
artifacts/archethic-wallet-windows-${{ steps.get_version.outputs.version_app }}.msix
2 changes: 1 addition & 1 deletion AppImageBuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ script:
- mkdir -p AppDir/usr/share/icons/
AppDir:
after_bundle:
- cp build/linux/x64/release/bundle/archethic_wallet AppDir
- cp build/linux/x64/release/bundle/archethic_wallet AppDir/ # TODO(Reddwarf03) : Not sure this is useful
- cp -r build/linux/x64/release/bundle/lib/. AppDir/lib
- cp -r build/linux/x64/release/bundle/data AppDir
- cp linux/archethic_wallet_appimage_icon.png AppDir/usr/share/icons/
Expand Down

0 comments on commit 47aa8d2

Please sign in to comment.