Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ozcanyarimdunya authored Jan 21, 2022
1 parent 1aa82d6 commit 2ff53b1
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
name: ci
name: yarimdunya.com-build

on:
push:
branches:
- master
branches: [ master ]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install poetry
- run: poetry install
- run: poetry run mkdocs gh-deploy --clean --force
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
run: pip install poetry && poetry install

- name: Publish site to the GitHub pages
run: poetry run mkdocs gh-deploy --clean --force

0 comments on commit 2ff53b1

Please sign in to comment.