From 6a637dfe9e594c315f125e58f95722f30670be2f Mon Sep 17 00:00:00 2001 From: Paulson McIntyre Date: Wed, 29 Jan 2025 17:59:24 -0500 Subject: [PATCH] Fixing output method --- .github/workflows/bases.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bases.yml b/.github/workflows/bases.yml index d8a5281..206746f 100644 --- a/.github/workflows/bases.yml +++ b/.github/workflows/bases.yml @@ -9,22 +9,26 @@ jobs: setup: runs-on: ubuntu-latest outputs: - matrix: ${{ steps.set-matrix.outputs.matrix }} + matrix: "${{ steps.set-matrix.outputs.matrix }}" steps: - - name: Checkout code + - name: Checkout build repo uses: actions/checkout@v2 + - name: Checkout gridfinity repo uses: actions/checkout@master with: repository: kennetek/gridfinity-rebuilt-openscad path: gridfinity-rebuilt-openscad + - name: Create output folder if needed run: | mkdir -p stls + - id: set-matrix run: | JSON=$(cat params/Base.json | jq '.parameterSets | keys' ) - echo "::set-output name=matrix::${JSON//'%'/'%25'}" + echo "matrix=${JSON//'%'/'%25'}" >> $GITHUB_OUTPUT + build: needs: [ setup ] runs-on: ubuntu-latest @@ -32,12 +36,14 @@ jobs: matrix: pset: "${{ fromJSON(needs.setup.outputs.matrix) }}" steps: + - - uses: gpmidi/openscad-build-action@main with: input-file: gridfinity-rebuilt-openscad/gridfinity-rebuilt-baseplate.scad output-file: "stls/base-${{ matrix.pset.key }}.stl" customizer-parameter-file: "params/Base.json" customizer-parameter-set: "${{ matrix.pset.key }}" + - uses: actions/upload-artifact@v4 with: name: "base-${{ matrix.pset.key }}"