From 2f6dc002c8f35b1d19f191dc77a2848ec289e740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20C=2E=20Barrionuevo=20da=20Luz?= Date: Wed, 20 Mar 2024 00:18:11 -0300 Subject: [PATCH] Fix the inputs/outputs sintax on deploy.yml workflow --- .github/workflows/deploy.yml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c9aeac9..2435b90 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -7,6 +7,15 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + inputs: + name: + description: 'Artifact name' + required: false + default: 'github-pages' + retention-days: + description: "Duration after which artifact will expire in days." + required: false + default: "1" # Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages permissions: @@ -19,21 +28,6 @@ concurrency: group: 'pages' cancel-in-progress: true -inputs: - name: - description: 'Artifact name' - required: false - default: 'github-pages' - retention-days: - description: "Duration after which artifact will expire in days." - required: false - default: "1" - -outputs: - artifact_id: - description: "The ID of the artifact that was uploaded." - value: ${{ steps.upload-artifact.outputs.artifact-id }} - jobs: deploy: if: github.repository == 'PyNorte/pynorte2024-site' @@ -41,6 +35,8 @@ jobs: name: production url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest + outputs: + artifact_id: ${{ steps.upload-artifact.outputs.artifact-id }} steps: - name: Checkout uses: actions/checkout@v4 @@ -62,7 +58,7 @@ jobs: - name: Upload artifact id: upload-artifact - uses: actions/upload-pages-artifact@v4 + uses: actions/upload-pages-artifact@v3 with: # Upload dist repository path: './dist'