This commit is contained in:
parent
d7e9cae7f8
commit
7a260f2314
25
.gitea/workflows/build.yml
Normal file
25
.gitea/workflows/build.yml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user