chocolatey-packages/.gitea/workflows/build.yml

29 lines
645 B
YAML
Raw Normal View History

2023-03-25 15:28:06 -04:00
on:
push:
branches:
- main
2023-03-25 16:40:21 -04:00
- test
2023-03-25 15:28:06 -04:00
env:
NUGET_URL: https://git.claremontmakerspace.org/api/packages/${{ github.repository_owner }}/nuget/index.json
jobs:
Build-Chocolatey-Packages:
runs-on: ubuntu-latest
2023-03-25 16:55:27 -04:00
container: chocolatey/choco
2023-03-25 15:28:06 -04:00
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Chocolatey Pack
run: |
for package in */
do
2023-03-25 16:55:27 -04:00
(
cd "$package"
echo "Packing $package"
choco pack
choco push --source "${{ env.NUGET_URL }}" --key "${{ secrets.GITHUB_TOKEN }}"
)
2023-03-25 15:28:06 -04:00
done