Repository: xxh/xxh (language: python)

Issue:
0.1.0
* Packaging
* License BSD
* Safe update mode
* Snail art
* Cleaning



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/release-build-appimage.yml b/.github/workflows/release-build-appimage.yml
new file mode 100644
index 0000000..b29dc99
--- /dev/null
+++ b/.github/workflows/release-build-appimage.yml
@@ -0,0 +1,29 @@
+name: Build xxh AppImage
+
+on:
+  release:
+    types: [created]
+
+jobs:
+  deploy:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up Python
+      uses: actions/setup-python@v2
+      with:
+        python-version: '3.8'
+    - name: Install xonsh shell
+      run: pip install xonsh
+    - name: Build xxh-appimage
+      run: xonsh xxh-appimage-build.xsh
+    - name: Test
+      run: ls -lah build/xxh-x86_64.AppImage
+    - name: Release
+      uses: softprops/action-gh-release@v1
+      if: startsWith(github.ref, 'refs/tags/')
+      with:
+        files: |
+          build/xxh-x86_64.AppImage
+      env:
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/release-build-portable.yml b/.github/workflows/release-build-portable.yml
new file mode 100644
index 0000000..024f439
--- /dev/null
+++ b/.github/workflows/release-build-portable.yml
@@ -0,0 +1,29 @@
+name: Build xxh portable
+
+on:
+  release:
+    types: [created]
+
+jobs:
+  deploy:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up Python
+      uses: actions/setup-python@v2
+      with:
+        python-version: '3.8'
+    - name: Install xonsh shell
+      run: pip install xonsh
+    - name: Build xxh-portable-musl-alpine-build
+      run: xonsh xxh-portable-musl-alpine-build.xsh
+    - name: Test
+      run: ls -lah build/xxh-portable-musl-alpine-Linux-x86_64.tar.gz
+    - name: Release
+      uses: softprops/action-gh-release@v1
+      if: startsWith(github.ref, 'refs/tags/')
+      with:
+        files: |
+          build/xxh-portable-musl-alpine-Linux-x86_64.tar.gz
+      env:
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/release-python-publish.yml
similarity index 71%
rename from .github/workflows/python-publish.yml
rename to .github/workflows/release-python-publish.yml
index 4e1ef42..87ce4bb 100644
--- a/.github/workflows/python-publish.yml
+++ b/.github/workflows/release-python-publish.yml
@@ -1,6 +1,3 @@
-# This workflows will upload a Python Package using Twine when a release is created
-# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
-
 name: Upload Python Package
 
 on:
diff --git a/xxh-appimage-build.xsh b/xxh-appimage-build.xsh
index 18d510f..265f749 100644
--- a/xxh-appimage-build.xsh
+++ b/xxh-appimage-build.xsh
@@ -2,4 +2,4 @@
 
 mkdir -p build
 docker build . -f xxh-appimage.Dockerfile -t tmp/xxh-appimage
-docker run --rm -it -v $PWD/build:/result tmp/xxh-appimage
\ No newline at end of file
+docker run --rm -v $PWD/build:/result tmp/xxh-appimage
\ No newline at end of file
diff --git a/xxh-appimage.Dockerfile b/xxh-appimage.Dockerfile
index 593362f..a6cf4fc 100644
--- a/xxh-appimage.Dockerfile
+++ b/xxh-appimage.Dockerfile
@@ -1,6 +1,7 @@
 FROM python:3.8-slim-buster
+VOLUME /result
 
-RUN apt update && apt install -y git file && pip install git+https://github.com/niess/python-appimage
+RUN apt update && apt install -y git file gpg && pip install git+https://github.com/niess/python-appimage
 
 ADD . /xxh
 RUN mkdir -p /result
@@ -10,4 +11,4 @@ RUN echo '/xxh' > requirements.txt && cat pre-requirements.txt >> requirements.t
 
 WORKDIR /xxh
 RUN python -m python_appimage build app /xxh/appimage
-CMD cp xxh-*.AppImage /result
\ No newline at end of file
+CMD cp /xxh/xxh-x86_64.AppImage /result && ls -sh1 /result
\ No newline at end of file


Test patch:
diff --git a/.github/workflows/push-test.yml b/.github/workflows/push-test.yml
new file mode 100644
index 0000000..9f0e06e
--- /dev/null
+++ b/.github/workflows/push-test.yml
@@ -0,0 +1,17 @@
+name: Test xxh after push
+
+on: push
+
+jobs:
+  deploy:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up Python
+      uses: actions/setup-python@v2
+      with:
+        python-version: '3.8'
+    - name: Install xxh
+      run: pip install .
+    - name: Run xxh
+      run: xxh --version
\ No newline at end of file