From 1636382e437b44eaae35ba324281a812cae39460 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sun, 3 Mar 2024 23:46:12 +0100 Subject: [PATCH] Aggiunti file per semplificare rilascio. --- .gitea/workflows/build-publish.yml | 23 +++++++++++++++++++++++ .gitignore | 4 +++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/build-publish.yml diff --git a/.gitea/workflows/build-publish.yml b/.gitea/workflows/build-publish.yml new file mode 100644 index 0000000..41dfe65 --- /dev/null +++ b/.gitea/workflows/build-publish.yml @@ -0,0 +1,23 @@ +name: Build and publish +on: [create, pull_request] + +jobs: + pkgbuild: + runs-on: archlinux + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Fix permissions + run: /fixperms.sh + - name: Compile package + run: /paruw.sh "paru -B ${{ gitea.workspace }}" + - name: Setup go for publishing + uses: actions/setup-go@v4 + with: + go-version: '>=1.20.1' + - name: Upload Package Archive + uses: https://gitea.com/actions/gitea-release-action@v1 + with: + files: "*.pkg.tar.zst" + api_key: ${{ secrets.APITOKEN_RELEASE }} + md5sum: true diff --git a/.gitignore b/.gitignore index 1c244af..ae12ca2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ -*.tar.* +*.tar.zst *.deb +src/** +pkg/**