From dd1657058d818bb72be003dcfbce4568811890b3 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Tue, 23 Apr 2024 12:26:08 -0500 Subject: [PATCH] update preview workflow --- ...review-to-neocities.yml => deploy-preview.yml} | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) rename .github/workflows/{deploy-preview-to-neocities.yml => deploy-preview.yml} (65%) diff --git a/.github/workflows/deploy-preview-to-neocities.yml b/.github/workflows/deploy-preview.yml similarity index 65% rename from .github/workflows/deploy-preview-to-neocities.yml rename to .github/workflows/deploy-preview.yml index 9238a13..65658db 100644 --- a/.github/workflows/deploy-preview-to-neocities.yml +++ b/.github/workflows/deploy-preview.yml @@ -7,7 +7,7 @@ on: - preview concurrency: # prevent concurrent deploys doing strange things - group: deploy-preview-to-neocities + group: deploy-preview cancel-in-progress: true # Default to bash @@ -29,8 +29,19 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + - name: Connect to Tailscale + uses: tailscale/github-action@v2 + with: + oauth-client-id: ${{ secrets.TS_API_CLIENT_ID }} + oauth-secret: ${{ secrets.TS_API_CLIENT_SECRET }} + tags: ${{ secrets.TS_TAG }} + - name: Configure SSH known hosts + run: | + mkdir -p ~/.ssh + echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts + chmod 644 ~/.ssh/known_hosts - name: Build with Hugo - run: hugo --minify --environment preview + run: HUGO_REMOTE_FONT_PATH=${{ secrets.REMOTE_FONT_PATH }} hugo --minify --environment preview - name: Insert 404 page run: | cp public/404/index.html public/not_found.html