Skip to content

Commit

Permalink
rm old gh-pages.yml in place of new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tjex committed Sep 13, 2024
1 parent d9f76cf commit ea9cbbb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 50 deletions.
41 changes: 12 additions & 29 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,25 @@
name: Deploy to GitHub Pages
name: Deploy GitHub Pages

# NOTE: workflow uses this repo: https://github.com/sphinx-notes/pages

on:
push:
branches: [ main ]
branches: [main]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Fix anchor tag in README
run: ex -s -c '%s/docs\/getting-started\.md/docs\/getting-started/|x' README.md
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
pages:
runs-on: ubuntu-20.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- id: deployment
uses: sphinx-notes/pages@v3

21 changes: 0 additions & 21 deletions .github/workflows/sphinx.yml

This file was deleted.

0 comments on commit ea9cbbb

Please sign in to comment.