diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index b7f8d23..81fac40 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -15,4 +15,23 @@ jobs: - name: Testing to run binary run: ./build/pwdgen && ./build/pwdgen 100 && ./build/pwdgen 1234567890 10 - name: Status jobs - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file + run: echo "🍏 This job's status is ${{ job.status }}." + + Archlinux-package: + runs-on: archlinux-aarch64 + steps: + - name: Download PKGBUILD file + run: | + mkdir workspace && \ + cd workspace && \ + curl \ + https://gitea.home.com:3000/TolaMironcenko/pwdgen/raw/branch/main/PKGBUILD \ + -o PKGBUILD && \ + sed "s/arch=('x86_64')/arch=('aarch64')/" -i PKGBUILD + - name: Build package + run: makepkg -f + - name: Push package + run: | + curl --user TolaMironcenko:d57cf51c49b425b42148e5a56882f8330bde011c \ + --upload-file ./pwdgen-git-1.0-1-aarch64.pkg.tar.zst \ + https://gitea.home.com:3000/api/packages/TolaMironcenko/arch/home \ No newline at end of file