From 5c3e332415977fd44b640c756cfd9617506271b8 Mon Sep 17 00:00:00 2001 From: Author STANkicks Date: Tue, 31 Dec 2024 20:14:56 -0600 Subject: [PATCH 1/6] Create static.yml Signed-off-by: Author STANkicks --- .github/workflows/static.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 00000000..f2c9e97c --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,43 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 3b33c40e37bcb3ed64725e9fa79a56e94e52f734 Mon Sep 17 00:00:00 2001 From: Author STANkicks Date: Tue, 31 Dec 2024 20:16:11 -0600 Subject: [PATCH 2/6] Create nuxt.js Signed-off-by: Author STANkicks --- .github/workflows/nuxt.js | 90 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .github/workflows/nuxt.js diff --git a/.github/workflows/nuxt.js b/.github/workflows/nuxt.js new file mode 100644 index 00000000..00992c6c --- /dev/null +++ b/.github/workflows/nuxt.js @@ -0,0 +1,90 @@ +# Sample workflow for building and deploying a Nuxt site to GitHub Pages +# +# To get started with Nuxt see: https://nuxtjs.org/docs/get-started/installation +# +name: Deploy Nuxt site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Detect package manager + id: detect-package-manager + run: | + if [ -f "${{ github.workspace }}/yarn.lock" ]; then + echo "manager=yarn" >> $GITHUB_OUTPUT + echo "command=install" >> $GITHUB_OUTPUT + exit 0 + elif [ -f "${{ github.workspace }}/package.json" ]; then + echo "manager=npm" >> $GITHUB_OUTPUT + echo "command=ci" >> $GITHUB_OUTPUT + exit 0 + else + echo "Unable to determine package manager" + exit 1 + fi + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: ${{ steps.detect-package-manager.outputs.manager }} + - name: Setup Pages + uses: actions/configure-pages@v5 + with: + # Automatically inject router.base in your Nuxt configuration file and set + # target to static (https://nuxtjs.org/docs/configuration-glossary/configuration-target/). + # + # You may remove this line if you want to manage the configuration yourself. + static_site_generator: nuxt + - name: Restore cache + uses: actions/cache@v4 + with: + path: | + dist + .nuxt + key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }} + restore-keys: | + ${{ runner.os }}-nuxt-build- + - name: Install dependencies + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} + - name: Static HTML export with Nuxt + run: ${{ steps.detect-package-manager.outputs.manager }} run generate + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./dist + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 95767807a2012a960a580fc265bced67a551b058 Mon Sep 17 00:00:00 2001 From: Author STANkicks Date: Tue, 31 Dec 2024 20:16:38 -0600 Subject: [PATCH 3/6] Rename static.yml to static.html Signed-off-by: Author STANkicks --- .github/workflows/{static.yml => static.html} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{static.yml => static.html} (100%) diff --git a/.github/workflows/static.yml b/.github/workflows/static.html similarity index 100% rename from .github/workflows/static.yml rename to .github/workflows/static.html From 5e65e9740c82d2bee29ebc34e0a49aafe4751470 Mon Sep 17 00:00:00 2001 From: Author STANkicks Date: Tue, 31 Dec 2024 20:18:08 -0600 Subject: [PATCH 4/6] Create .nojekyll Signed-off-by: Author STANkicks --- .github/workflows/.nojekyll | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/.nojekyll diff --git a/.github/workflows/.nojekyll b/.github/workflows/.nojekyll new file mode 100644 index 00000000..68520b5a --- /dev/null +++ b/.github/workflows/.nojekyll @@ -0,0 +1,64 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# Sample workflow for building and deploying a Jekyll site to GitHub Pages +name: Deploy Jekyll site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Ruby + uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 + with: + ruby-version: '3.1' # Not needed with a .ruby-version file + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + cache-version: 0 # Increment this number if you need to re-download cached gems + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Build with Jekyll + # Outputs to the './_site' directory by default + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + env: + JEKYLL_ENV: production + - name: Upload artifact + # Automatically uploads an artifact from the './_site' directory by default + uses: actions/upload-pages-artifact@v3 + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From cac8bafa146c2850eca719537ea3fb8807dd6b84 Mon Sep 17 00:00:00 2001 From: Author STANkicks Date: Tue, 31 Dec 2024 20:40:47 -0600 Subject: [PATCH 5/6] Create index.html Signed-off-by: Author STANkicks --- index.html | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 00000000..e88161fb --- /dev/null +++ b/index.html @@ -0,0 +1,3 @@ +index.html + +* From 983c24b2a8f3cab25a3642852e56c4a76fdd5dd1 Mon Sep 17 00:00:00 2001 From: Author STANkicks Date: Tue, 31 Dec 2024 20:52:52 -0600 Subject: [PATCH 6/6] new --- README.md | 2 +- index.html | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 483b0467..3db5b323 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,4 @@ You can try it out using the following command. ```docker compose up -d``` -And open http://localhost:3000 in your browser. \ No newline at end of file +And open http://127.0.0.1:3000 in your browser. \ No newline at end of file diff --git a/index.html b/index.html index e88161fb..533e4442 100644 --- a/index.html +++ b/index.html @@ -1,3 +1,4 @@ -index.html +cd stankick.github.io +echo "Hello World" > index.html -* +index.html