diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..064ab56 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,71 @@ +# Sample workflow for building and deploying a Hugo site to GitHub Pages +name: Deploy Hugo 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 + +# Default to bash +defaults: + run: + shell: bash + +jobs: + # Build job + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.124.1 + steps: + - name: Install Hugo CLI + run: | + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ + && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Build with Hugo + env: + # For maximum backward compatibility with Hugo modules + HUGO_ENVIRONMENT: production + HUGO_ENV: production + run: | + hugo \ + --minify \ + --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./public + + # 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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index ff60cfb..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,28 +0,0 @@ -# SERVING CSTATE ON GITLAB PAGES -# Introduced in v4.2.1 -# -# This file is very similar to the existing GitLab template, and might need editing before it works on your project. -# -# All available Hugo versions are listed here: -# https://gitlab.com/pages/hugo/container_registry -# -# cState uses Hugo Extended. -image: registry.gitlab.com/pages/hugo/hugo_extended:0.100.2 - -variables: - GIT_SUBMODULE_STRATEGY: recursive - -test: - script: - - hugo - except: - - master - -pages: - script: - - hugo - artifacts: - paths: - - public - only: - - master diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index cbef91a..0000000 --- a/netlify.toml +++ /dev/null @@ -1,22 +0,0 @@ -[build] - command = "hugo" - publish = "public" - functions = "functions" - -[build.environment] - HUGO_VERSION = "0.80.0" - -[context.production.environment] - HUGO_ENV = "production" - NODE_ENV = "production" - -[context.deploy-preview] - command = "hugo -b $DEPLOY_PRIME_URL" - -[context.branch-deploy] - command = "hugo -b $DEPLOY_PRIME_URL" - -[[headers]] - for = "/*" - [headers.values] - Access-Control-Allow-Origin = "*" diff --git a/netlify/change.html b/netlify/change.html deleted file mode 100644 index 23ad8a3..0000000 --- a/netlify/change.html +++ /dev/null @@ -1,5 +0,0 @@ -
Follow this link to confirm the update of your email from {{ .Email }} to {{ .NewEmail }}:
- - \ No newline at end of file diff --git a/netlify/confirmation.html b/netlify/confirmation.html deleted file mode 100644 index b6b8e55..0000000 --- a/netlify/confirmation.html +++ /dev/null @@ -1,5 +0,0 @@ -Follow this link to confirm your account:
- - diff --git a/netlify/invitation.html b/netlify/invitation.html deleted file mode 100644 index 4ad78bd..0000000 --- a/netlify/invitation.html +++ /dev/null @@ -1,5 +0,0 @@ -You have been invited to create a user profile on {{ .SiteURL }}. Follow this link to accept the invite:
- - diff --git a/netlify/recovery.html b/netlify/recovery.html deleted file mode 100644 index 1de69fd..0000000 --- a/netlify/recovery.html +++ /dev/null @@ -1,7 +0,0 @@ -Follow this link to reset the password for your account:
- - - -Note: If you did not request a password change, you do not need to do anything. It may mean someone else is trying to log into your account.
\ No newline at end of file diff --git a/vercel.json b/vercel.json deleted file mode 100644 index 53aef1d..0000000 --- a/vercel.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "headers": [ - { - "source": "/(.*)", - "headers": [ - { "key": "Access-Control-Allow-Origin", "value": "*" }, - { "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS" }, - { "key": "Access-Control-Allow-Headers", "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" } - ] - } - ] -}