From 0c66a2ed4d9da7f7b77dcfa15227411bda9aecef Mon Sep 17 00:00:00 2001 From: Victor Bogo Date: Wed, 25 Sep 2024 11:22:51 -0300 Subject: [PATCH] Configure the Github Actions workflow to publish to Github Pages (#36) * configure the Github Actions workflow to publish to Github Pages Signed-off-by: Victor Bogo * add CNAME file Signed-off-by: Victor Bogo --------- Signed-off-by: Victor Bogo --- .github/workflows/eleventy_publish.yml | 28 ++++++++++++++++++++++++++ CNAME | 1 + 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/eleventy_publish.yml create mode 100644 CNAME diff --git a/.github/workflows/eleventy_publish.yml b/.github/workflows/eleventy_publish.yml new file mode 100644 index 0000000..e6fc2e2 --- /dev/null +++ b/.github/workflows/eleventy_publish.yml @@ -0,0 +1,28 @@ +name: Eleventy Publish +on: + push: + branches: + - main + workflow_dispatch: + inputs: + confirmation: + description: 'Are you sure you want to run the publish process manually?' + required: true + type: boolean +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 18 + - run: npm ci + - run: npm run publish + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_public + cname: native.hotwired.dev diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..5b63791 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +native.hotwired.dev