Skip to content

Commit

Permalink
Add build and deploy jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
thevahidal committed Dec 28, 2023
1 parent 2f688a9 commit 61940d5
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/hellow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

jobs:
run-script:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -17,10 +17,28 @@ jobs:

- run: poetry install
- run: poetry run python script.py

build:
runs-on: ubuntu-latest
steps:
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: .

deploy:
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 61940d5

Please sign in to comment.