mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-24 14:06:27 +02:00
feat: manual package building
This commit is contained in:
parent
febfa0a683
commit
7e09a3f9cd
1 changed files with 18 additions and 1 deletions
19
.github/workflows/package-push.yaml
vendored
19
.github/workflows/package-push.yaml
vendored
|
@ -7,6 +7,12 @@ on:
|
|||
- v3
|
||||
paths:
|
||||
- packages/**
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
language:
|
||||
description: 'Language to build (LANG-x.y.z)'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build-pkg:
|
||||
|
@ -28,7 +34,8 @@ jobs:
|
|||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build Packages
|
||||
- name: Build Packages (push)
|
||||
if: github.event.push
|
||||
run: |
|
||||
PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
|
||||
echo "Packages: $PACKAGES"
|
||||
|
@ -36,6 +43,16 @@ jobs:
|
|||
docker build -t repo-builder repo
|
||||
docker run -v "${{ github.workspace }}:/piston" repo-builder --no-server $PACKAGES
|
||||
ls -la packages
|
||||
|
||||
- name: Build Packages (manual)
|
||||
if: ${{ inputs.language }}
|
||||
run: |
|
||||
PACKAGES=${{ inputs.language }}
|
||||
echo "Packages: $PACKAGES"
|
||||
docker pull docker.pkg.github.com/endercheif/piston/repo-builder:latest
|
||||
docker build -t repo-builder repo
|
||||
docker run -v "${{ github.workspace }}:/piston" repo-builder --no-server $PACKAGES
|
||||
ls -la packages
|
||||
|
||||
- name: Upload Packages
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue