Compare commits

...

2 commits

Author SHA1 Message Date
06f0488c31
fix: always commit to avoid accidentally amending source commit
Some checks are pending
Build and publish / build-and-deploy (push) Waiting to run
2025-01-29 12:23:02 -05:00
be85bb1494
fix: use different names for each deploy artifact
Some checks are pending
Build and publish / build-and-deploy (push) Waiting to run
2025-01-29 12:18:19 -05:00

View file

@ -39,16 +39,24 @@ jobs:
git config user.email "actions@github.com" git config user.email "actions@github.com"
- run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
- uses: actions/upload-pages-artifact@v3 - uses: actions/upload-pages-artifact@v3
with:
name: github-pages-publish-1
- uses: actions/deploy-pages@v4 - uses: actions/deploy-pages@v4
with:
artifact_name: github-pages-publish-1
- run: | - run: |
git add _data/webmention_io_* git add _data/webmention_io_*
git diff --staged --quiet || git commit -m "publish: ${{ github.sha }}" git diff --staged --quiet || git commit -m "publish: collect webmentions for ${{ github.sha }}"
git push origin main git push origin main
- run: bundle exec jekyll webmention - run: bundle exec jekyll webmention
- run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" - run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
- uses: actions/upload-pages-artifact@v3 - uses: actions/upload-pages-artifact@v3
with:
name: github-pages-publish-2
- uses: actions/deploy-pages@v4 - uses: actions/deploy-pages@v4
with:
artifact_name: github-pages-publish-1
- run: | - run: |
git add _data/webmention_io_* git add _data/webmention_io_*
git diff --staged --quiet || git commit --amend --no-edit git diff --staged --quiet || git commit -m "publish: update webmentions for ${{ github.sha }}"
git push origin main --force-with-lease git push origin main --force-with-lease