Skip to content

Updated LateNite Link #89

Updated LateNite Link

Updated LateNite Link #89

Workflow file for this run

name: Update Transfer Toolbox Website & Publish to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
name: Publish to retype branch
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Copy docs/appcast.xml to temporary directory and upload as artifact
run: |
cp docs/appcast.xml appcast.xml
id: appcast-file
- uses: actions/upload-artifact@v2
with:
name: appcast.xml
path: appcast.xml
- uses: retypeapp/action-build@latest
with:
license: ${{ secrets.RETYPE_SECRET }}
- uses: retypeapp/action-github-pages@latest
with:
update-branch: true
- uses: actions/download-artifact@v2
with:
name: appcast.xml
- name: Checkout retype branch and add appcast.xml
run: |
git fetch
git checkout retype
git add appcast.xml
git commit -m "Copy docs/appcast.xml file from main branch and move to root" || echo "No changes to commit"
git push origin retype
- name: Purge CloudFlare cache
run: |
curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CLOUDFLARE_ZONE_ID }}/purge_cache" \
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}" \
-H "Content-Type: application/json" \
--data '{"purge_everything":true}'