diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml new file mode 100644 index 0000000..115e97e --- /dev/null +++ b/.forgejo/workflows/deploy.yaml @@ -0,0 +1,27 @@ +name: Hugo + +on: + push: + branches: + - main + +jobs: + build: + runs-on: hugo-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: "true" + - name: Copy exampleSite Files + run: cp -v exampleSite/hugo.yaml . + - name: Run build task + run: hugo --minify + - name: Deploy to Server + uses: https://git.myco.systems/mirrors/ssh-deploy@main + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + ARGS: "-rlgoDzvc -i --delete" + SOURCE: "public/" + REMOTE_HOST: ${{ secrets.REMOTE_HOST }} + REMOTE_USER: ${{ secrets.REMOTE_USER }} + TARGET: ${{ secrets.REMOTE_TARGET }} \ No newline at end of file diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml new file mode 100644 index 0000000..ad327fc --- /dev/null +++ b/exampleSite/hugo.yaml @@ -0,0 +1,25 @@ +baseURL: https://hugojson.myco.systems/ +theme: hugo-maintenance +defaultContentLanguage: en + +params: + openGraph: + title: "My Hugo site" + image: "https://example.com/opengraph-image.jpg" + description: | + Welcome to my Hugo site! + url: "https://example.com" + + title: "My Hugo site" + body: | + Welcome to my Hugo site! + + faq: + - question: "Why does your website look like this?" + answer: "Our pretty looking site is currently under construction!" + + contact: + - service: "e-mail" + input: "your@email.com" + + asciiArt: 2 diff --git a/hugo.toml b/hugo.toml deleted file mode 100644 index 890e58d..0000000 --- a/hugo.toml +++ /dev/null @@ -1,23 +0,0 @@ -baseURL = 'https://example.org/' -languageCode = 'en-us' -title = 'My New Hugo Site' - -[[menus.main]] -name = 'Home' -pageRef = '/' -weight = 10 - -[[menus.main]] -name = 'Posts' -pageRef = '/posts' -weight = 20 - -[[menus.main]] -name = 'Tags' -pageRef = '/tags' -weight = 30 - -[module] - [module.hugoVersion] - extended = false - min = "0.116.0" diff --git a/theme.toml b/theme.toml index 339a74d..660cd62 100644 --- a/theme.toml +++ b/theme.toml @@ -3,7 +3,7 @@ license = 'MIT' licenselink = 'https://git.myco.systems/mycosystems/hugo-maintenance/src/branch/main/LICENSE' description = 'Simple maintenance page in the style of JSON' homepage = 'https://git.myco.systems/mycosystems/hugo-maintenance' -demosite = 'https://owner.github.io/repo' +demosite = 'https://hugojson.myco.systems/' tags = ['maintenance', 'JSON'] [author]