Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:

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

jobs:
deploy:
Expand All @@ -25,13 +25,31 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Verify required files exist
run: |
for f in index.html swim_time_standards.json; do
if [ ! -f "$f" ]; then
echo "::error ::Required file '$f' not found. Aborting deployment."
exit 1
fi
done

- name: Prepare publish directory
run: |
rm -rf .publish
mkdir -p .publish
cp index.html .publish/
cp swim_time_standards.json .publish/
# show what will be published (helpful in logs)
ls -la .publish

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'
path: .publish

- name: Deploy to GitHub Pages
id: deployment
Expand Down
Loading