diff --git a/.github/actions/build-and-deploy-composite.yml b/.github/actions/build-and-deploy-composite.yml new file mode 100644 index 00000000..5db56f32 --- /dev/null +++ b/.github/actions/build-and-deploy-composite.yml @@ -0,0 +1,30 @@ +name: Build and deploy ${{ inputs.environment }} + +inputs: + environment: + description: Environment to deploy too + required: true + type: choice + options: + - develop + - production + node_version: + type: string + required: true + VERCEL_ORG_ID: + description: 'org id' + required: true + VERCEL_PROJECT_ID: + description: 'Project Id' + required: true + +outputs: + success: + description: if action was successful + value: ${{ steps.random-number-generator.outputs.random-number }} + +runs: + using: "composite" + steps: + - name: test + run: echo "test" ${{ inputs.environment }} ${{ inputs.node_version }} \ No newline at end of file diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml new file mode 100644 index 00000000..5d3ae0b4 --- /dev/null +++ b/.github/workflows/debug.yml @@ -0,0 +1,24 @@ +name: Debug + +on: + pull_request: + branches: + - dev +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: test + uses: ./github-actions/build-and-build-and-deploy-composite.yml + with: + environment: develop + node_version: 20 + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + diff --git a/github-actions/build-and-deploy-composite.yml b/github-actions/build-and-deploy-composite.yml new file mode 100644 index 00000000..5db56f32 --- /dev/null +++ b/github-actions/build-and-deploy-composite.yml @@ -0,0 +1,30 @@ +name: Build and deploy ${{ inputs.environment }} + +inputs: + environment: + description: Environment to deploy too + required: true + type: choice + options: + - develop + - production + node_version: + type: string + required: true + VERCEL_ORG_ID: + description: 'org id' + required: true + VERCEL_PROJECT_ID: + description: 'Project Id' + required: true + +outputs: + success: + description: if action was successful + value: ${{ steps.random-number-generator.outputs.random-number }} + +runs: + using: "composite" + steps: + - name: test + run: echo "test" ${{ inputs.environment }} ${{ inputs.node_version }} \ No newline at end of file