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
|
- v3
|
||||||
paths:
|
paths:
|
||||||
- packages/**
|
- packages/**
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
language:
|
||||||
|
description: 'Language to build (LANG-x.y.z)'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-pkg:
|
build-pkg:
|
||||||
|
@ -28,7 +34,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build Packages
|
- name: Build Packages (push)
|
||||||
|
if: github.event.push
|
||||||
run: |
|
run: |
|
||||||
PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
|
PACKAGES=$(jq '.[]' -r ${HOME}/files*.json | awk -F/ '$1~/packages/ && $2 && $3{ print $2 "-" $3 }' | sort -u)
|
||||||
echo "Packages: $PACKAGES"
|
echo "Packages: $PACKAGES"
|
||||||
|
@ -37,6 +44,16 @@ jobs:
|
||||||
docker run -v "${{ github.workspace }}:/piston" repo-builder --no-server $PACKAGES
|
docker run -v "${{ github.workspace }}:/piston" repo-builder --no-server $PACKAGES
|
||||||
ls -la 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
|
- name: Upload Packages
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue