Skip to content

v0.10.2: rename CSV backups to flatgym_backup_YYYY_MM_DD.csv #34

v0.10.2: rename CSV backups to flatgym_backup_YYYY_MM_DD.csv

v0.10.2: rename CSV backups to flatgym_backup_YYYY_MM_DD.csv #34

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: false
jobs:
test:
name: Playwright tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: npm install --no-audit --no-fund
- run: npx playwright install --with-deps chromium
- run: npm test
- if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 7
deploy-pages:
name: Deploy gym-tracker.html to GitHub Pages
needs: test
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Assemble site
run: |
mkdir _site
cp gym-tracker.html _site/index.html
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: _site
- id: deployment
uses: actions/deploy-pages@v4