parent
f8b37a51aa
commit
6d8b60d819
@ -3,26 +3,19 @@ on:
|
||||
branches:
|
||||
- main
|
||||
- test
|
||||
|
||||
env:
|
||||
NUGET_URL: https://git.claremontmakerspace.org/api/packages/${{ github.repository_owner }}/nuget/index.json
|
||||
|
||||
jobs:
|
||||
Build-Chocolatey-Packages:
|
||||
runs-on: ubuntu-latest
|
||||
container: chocolatey/choco
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Chocolatey Pack
|
||||
run: |
|
||||
for package in */
|
||||
do
|
||||
(
|
||||
cd "$package"
|
||||
echo "Packing $package"
|
||||
choco pack
|
||||
choco push --source "${{ env.NUGET_URL }}" --key "${{ secrets.GITHUB_TOKEN }}"
|
||||
)
|
||||
done
|
||||
uses: docker://chocolatey/choco:latest
|
||||
with:
|
||||
args: ./build-all.sh
|
||||
env:
|
||||
NUGET_URL: https://git.claremontmakerspace.org/api/packages/${{ github.repository_owner }}/nuget/index.json
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
13
build-all.sh
Executable file
13
build-all.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
for package in */
|
||||
do
|
||||
(
|
||||
cd "$package"
|
||||
echo "Packing $package"
|
||||
choco pack
|
||||
choco push --source "$NUGET_URL" --key "$GITHUB_TOKEN"
|
||||
)
|
||||
done
|
Loading…
Reference in New Issue
Block a user