Skip to content

Commit

Permalink
Fix the inputs/outputs sintax on deploy.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
luzfcb committed Mar 20, 2024
1 parent 6ad86e2 commit 663282a
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -19,28 +28,15 @@ 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'
environment:
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
Expand Down

0 comments on commit 663282a

Please sign in to comment.