From 0ad9c8b4eaee61825f2252d6de6ef770503740d5 Mon Sep 17 00:00:00 2001 From: Carlgo11 Date: Mon, 28 Oct 2019 01:48:11 +0100 Subject: [PATCH] Add CNAME in action script --- .github/workflows/deploy.yml | 2 ++ frontend/CNAME | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 frontend/CNAME diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5ca39de..935bc82 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,6 +15,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} + SITE_NAME: "tempfiles.carlgo11.com" run: | cd frontend/ remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" && \ @@ -22,6 +23,7 @@ jobs: git init && \ git config user.name "bot" && \ git config user.email "bot@users.noreply.github.com" && \ + echo "${SITE_NAME}" > CNAME git add . && \ echo -n 'Files to Commit:' && ls -l | wc -l && \ git commit -m'Push to GitHub Pages' > /dev/null 2>&1 && \ diff --git a/frontend/CNAME b/frontend/CNAME deleted file mode 100644 index 0dc0b83..0000000 --- a/frontend/CNAME +++ /dev/null @@ -1 +0,0 @@ -tempfiles.carlgo11.com \ No newline at end of file