π Adjust HTML formatting #66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
schedule: | |
- cron: '27 3 15 * *' # trigger once a month to keep "Years of Experience" up to date | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v3 | |
- name: Setup Node πΏ | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
cache: 'npm' | |
- name: Install Dependencies π¦ | |
run: npm ci --legacy-peer-deps | |
- name: Build π | |
run: npm run build | |
- name: Export Static Site βοΈ | |
run: npm run scully:scan-routes | |
- name: Deploy to Cloudflare Pages π | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
projectName: personal-website | |
directory: dist/static | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |