Skip to content

Updating event

Updating event #33

Workflow file for this run

name: Deploy Static Site
on:
push:
branches:
- main # Trigger deployment on pushes to the main branch
workflow_dispatch: # Allow manual triggering of the workflow
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the repository
- name: Checkout Repository
uses: actions/checkout@v3
# Step 2: Create the `secrets.json` file
- name: Create Secrets File
run: |
echo '{ "calendarUrl": "${{ secrets.CALENDAR_URL }}", "defaultLocation": "${{ secrets.DEFAULT_LOCATION }}" }' > secrets.json
# Step 3: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: . # Deploy the root directory (contains your static site)