diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80a0470..30e060e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,16 +8,22 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Master - uses: actions/checkout@master + uses: actions/checkout@v3 + - name: Setup Node Version - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: '16' - - name: Create GithubPages Branches - uses: JamesIves/github-pages-deploy-action@releases/v2 - env: - ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} - BASE_BRANCH: master - BRANCH: gh-pages - FOLDER: build - BUILD_SCRIPT: cp .env.example .env && yarn install --ignore-engines && yarn build + + - 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: | + cp .env.example .env + yarn install --ignore-engines + yarn build + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + token: ${{ secrets.ACCESS_TOKEN }} + folder: build # The folder the action should deploy. + branch: gh-pages