Skip to content

Add upload and deploy artifact steps #19

Add upload and deploy artifact steps

Add upload and deploy artifact steps #19

Workflow file for this run

name: Run Python Script
on:
push:
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "poetry"
- run: poetry install
- run: poetry run python script.py
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: .
- id: deployment
uses: actions/deploy-pages@main
- name: Deploy to GitHub Pages
id: deployment

Check failure on line 27 in .github/workflows/hellow.yaml

View workflow run for this annotation

GitHub Actions / Run Python Script

Invalid workflow file

The workflow is not valid. .github/workflows/hellow.yaml (Line: 27, Col: 13): The identifier 'deployment' may not be used more than once within the same scope.
uses: actions/deploy-pages@v4