Skip to content

Merge pull request #1852 from dennybiasiolli/updating-tutorial-v2 #91

Merge pull request #1852 from dennybiasiolli/updating-tutorial-v2

Merge pull request #1852 from dennybiasiolli/updating-tutorial-v2 #91

Workflow file for this run

---
name: Build and Deploy
on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: calibre rename
- name: Install and Build
run: |
npm install
npx honkit build
npx honkit epub
rename 's/^book/django-girls-tutorial/' book_*.epub
mv *.epub _book/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: _book
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