mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 05:36:07 +01:00
Come back to figuring out why syndication is broken
This commit is contained in:
parent
740332509d
commit
87a22651d5
1 changed files with 20 additions and 20 deletions
40
.github/workflows/publish.yml
vendored
40
.github/workflows/publish.yml
vendored
|
@ -62,26 +62,26 @@ jobs:
|
|||
--cacheDir /tmp/hugo/cache \
|
||||
--minify \
|
||||
--baseURL "https://www.byjp.me"
|
||||
- name: Syndicate
|
||||
env:
|
||||
INSTAGRAM_PASSWORD: ${{ secrets.INSTAGRAM_PASSWORD }}
|
||||
INSTAGRAM_TOTP: ${{ secrets.INSTAGRAM_TOTP }}
|
||||
PIXELFED_ACCESS_TOKEN: ${{ secrets.PIXELFED_ACCESS_TOKEN }}
|
||||
run: |
|
||||
cd tools/syndicate
|
||||
go mod download
|
||||
go run .
|
||||
if git diff-index --quiet HEAD; then
|
||||
echo "No syndication changes made"
|
||||
else
|
||||
echo "Committing syndication changes"
|
||||
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --global user.name "Syndicate[bot]"
|
||||
git commit -am "Syndicated post references"
|
||||
git push
|
||||
# TODO: Do not upload, but without failing the build
|
||||
exit 1
|
||||
fi
|
||||
# - name: Syndicate
|
||||
# env:
|
||||
# INSTAGRAM_PASSWORD: ${{ secrets.INSTAGRAM_PASSWORD }}
|
||||
# INSTAGRAM_TOTP: ${{ secrets.INSTAGRAM_TOTP }}
|
||||
# PIXELFED_ACCESS_TOKEN: ${{ secrets.PIXELFED_ACCESS_TOKEN }}
|
||||
# run: |
|
||||
# cd tools/syndicate
|
||||
# go mod download
|
||||
# go run .
|
||||
# if git diff-index --quiet HEAD; then
|
||||
# echo "No syndication changes made"
|
||||
# else
|
||||
# echo "Committing syndication changes"
|
||||
# git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||
# git config --global user.name "Syndicate[bot]"
|
||||
# git commit -am "Syndicated post references"
|
||||
# git push
|
||||
# # TODO: Do not upload, but without failing the build
|
||||
# exit 1
|
||||
# fi
|
||||
- name: Build search index
|
||||
run: |
|
||||
# Build the search index
|
||||
|
|
Loading…
Reference in a new issue