Added post on workflow id ratelimits (#193) #186
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# same as build.yml | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Use Node.js v18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
cache: 'npm' | |
- name: Install and Build 🔧 | |
run: | | |
npm install | |
npm run build | |
# additional steps to deploy | |
- name: Configure domain | |
uses: finnp/[email protected] | |
env: | |
FILE_NAME: "dist/CNAME" | |
FILE_DATA: ${{ secrets.CUSTOM_DOMAIN }} | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: dist # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch |