Skip to content

https://github.com/haxtheweb/issues/issues/2099 #136

https://github.com/haxtheweb/issues/issues/2099

https://github.com/haxtheweb/issues/issues/2099 #136

Workflow file for this run

name: Build and Deploy
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: ACTIONS_ALLOW_UNSECURE_COMMANDS
id: ACTIONS_ALLOW_UNSECURE_COMMANDS
run: echo 'ACTIONS_ALLOW_UNSECURE_COMMANDS=true' >> $GITHUB_ENV
- name: set env variable actor
run: echo 'GITHUB_ACTOR=$GITHUB_ACTOR' >> $GITHUB_ENV
- name: set env variable repo
run: echo 'GITHUB_REPOSITORY=$GITHUB_REPOSITORY' >> $GITHUB_ENV
- name: Checkout 🛎️
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false
- name: Read CNAME
id: cname
uses: juliangruber/read-file-action@v1
with:
path: ./CNAME
- name: set env variable CNAME
run: echo 'CNAME=${{ steps.cname.outputs.content }}' >> $GITHUB_ENV
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
yarn install
yarn run build
- name: Deploy to GitHub Pages
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.