From 7a260f2314e32fb1bfa7dbe9e24d10f4ca7cbdc4 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 25 Mar 2023 15:28:06 -0400 Subject: [PATCH] ci: Add automatic build action --- .gitea/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..648cf8d --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,25 @@ +on: + push: + branches: + - main + +env: + NUGET_URL: https://git.claremontmakerspace.org/api/packages/${{ github.repository_owner }}/nuget/index.json + +jobs: + Build-Chocolatey-Packages: + runs-on: ubuntu-latest + container: catthehacker/ubuntu:act-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Chocolatey Pack + run: | + for package in */ + do + echo "Packing $package" + docker run --rm -v "$PWD/$package:/build" -w /build chocolatey/choco choco pack + docker run --rm -v "$PWD/$package:/build" -w /build chocolatey/choco choco push \ + --source "${{ env.NUGET_URL }}" --key "${{ secrets.GITHUB_TOKEN }}" + done