This is an automated email from the ASF dual-hosted git repository.
dfoulks pushed a commit to branch dfoulks/pelican-gha
in repository https://gitbox.apache.org/repos/asf/petri.git
The following commit(s) were added to refs/heads/dfoulks/pelican-gha by this
push:
new ff2c311 Updated workflow to use the new action
ff2c311 is described below
commit ff2c311f1c673d0dfd7ca942ed68f69bc7a8b23b
Author: Drew <[email protected]>
AuthorDate: Mon May 20 12:55:07 2024 -0400
Updated workflow to use the new action
---
.github/workflows/build-pelican.yml | 33 +++++----------------------------
1 file changed, 5 insertions(+), 28 deletions(-)
diff --git a/.github/workflows/build-pelican.yml
b/.github/workflows/build-pelican.yml
index 8b0ab20..5ff47a2 100644
--- a/.github/workflows/build-pelican.yml
+++ b/.github/workflows/build-pelican.yml
@@ -1,7 +1,7 @@
name: Build a Pelican Website
on:
push:
- branches: [ "dfoulks/pelican-gha" ]
+ branches: [ "dfoulks/pelican_gha" ]
workflow_dispatch:
jobs:
build-pelican:
@@ -10,32 +10,9 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
- repository: ''
- ref: 'dfoulks/pelican-gha'
- - name: Install Pelican
- run: pip3 install pelican markdown ghp-import bs4
- # Optionally, if your website uses the gfm plugin uncomment the GFM block
- #########################
- # START BUILD GFM BLOCK #
- #########################
- - name: fetch libcmark-gfm.so buildscript
- run: wget
https://raw.githubusercontent.com/apache/infrastructure-pelican/master/bin/build-cmark.sh
- - name: build libcmark-gfm.so
- run: /bin/bash ./build-cmark.sh
- #######################
- # END BUILD GFM BLOCK #
- #######################
- - name: Generate website from markdown
- run: /usr/bin/env python3 -m pelican content -o output
- env:
- LIBCMARKDIR: cmark-gfm-0.28.3.gfm.12/lib
- - name: Open a PR against the staging branch
- uses: peter-evans/[email protected]
+ ref: 'dfoulks/pelican_gha'
+ - uses: apache/infrastructure-actions/build-pelican@main
with:
+ destination: 'dfoulks/gha-site'
+ gfm: 'true'
token: ${{ secrets.GITHUB_TOKEN }}
- commit-message: GitHub Actions Generated Pelican Build
- title: Generated Pelican Output
- body: output generated
- add-paths: |
- output/
- base: dfoulks/gha-site