diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index ade7d88..0f1f0ac 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -17,16 +17,34 @@ jobs: - run: "chmod 0755 packaging/debian/usr/bin/cicpoffs" - run: "ln -s cicpoffs packaging/debian/usr/bin/mount.cicpoffs" - run: "dpkg-deb --build packaging/debian" + - run: "cp packaging/debian.deb packaging/cicpoffs.deb" - uses: actions/upload-artifact@v3 with: name: cicpoffs.deb path: packaging/debian.deb + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: packaging/cicpoffs.deb + tag: ${{ github.ref }} + overwrite: true + file_glob: true Build_for_ARCH: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - run: "docker run --rm -v ./:/repo archlinux /bin/bash /repo/packaging/arch/bash.sh" + - run: "cp packaging/arch/cicpoffs.tar.zst packaging/cicpoffs.tar.zst" - uses: actions/upload-artifact@v3 with: name: cicpoffs.tar.zst path: packaging/arch/cicpoffs.tar.zst + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: packaging/cicpoffs.tar.zst + tag: ${{ github.ref }} + overwrite: true + file_glob: true diff --git a/.gitignore b/.gitignore index d784ab1..9845722 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,6 @@ packaging/debian.deb packaging/arch/pkg packaging/arch/src packaging/arch/cicpoffs-git-* -packaging/arch/cicpoffs.tar.zst \ No newline at end of file +packaging/arch/cicpoffs.tar.zst +packaging/cicpoffs.tar.zst +packaging/cicpoffs.deb \ No newline at end of file