Skip to content

Add Cloudflare Pages redirects file (#2126) #255

Add Cloudflare Pages redirects file (#2126)

Add Cloudflare Pages redirects file (#2126) #255

Workflow file for this run

name: Deploy
on:
push:
branches: master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Notes (read me) πŸ“–'
run: |
# About this workflow:
# This workflow generates GitHub pages, but IT IS NOT USED. It is
# only generated as an emergency fallback in case Netlify goes down 😊
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v4
- name: Use Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: yarn install --frozen-lockfile
- run: yarn build
- name: 'Deploy to gh-pages πŸš€'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: _site
- name: 'Deploy to mirror πŸš€'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
REPOSITORY_NAME: rstacruz/devhints-mirror
BRANCH: gh-pages
FOLDER: _site
- name: 'Notify Slack πŸ“’'
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_DEPLOY_WEBHOOK_URL }}