From f5dcac9ed6bbed751ad2243c9b2933ca5c74c9c8 Mon Sep 17 00:00:00 2001 From: Rob Larsen Date: Tue, 12 Jul 2022 14:57:30 -0400 Subject: [PATCH] finally adding this action (#736) * finally adding this action * adding input argument * try this * try this * debugging actions is the best * debugging actions is the best * debugging actions is the best * debugging actions is the best --- .github/workflows/gh-pages-build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/gh-pages-build.yml diff --git a/.github/workflows/gh-pages-build.yml b/.github/workflows/gh-pages-build.yml new file mode 100644 index 0000000..3fb36de --- /dev/null +++ b/.github/workflows/gh-pages-build.yml @@ -0,0 +1,25 @@ +name: Eleventy Build +push: + branches: [main] + +jobs: + build_deploy: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@master + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: "16.x" + - run: npm install + - name: Build + uses: TartanLlama/actions-eleventy@master + with: + args: --config=config/eleventy.config.js --pathprefix='Front-end-Developer-Interview-Questions/' + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + publish_dir: ./_site + publish_branch: gh-pages + github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file