Skip to content

Commit

Permalink
ci: setup github-actions ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelhoun committed May 8, 2022
1 parent 574f4ad commit 0b200f4
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Github Pages Publish

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: sterlingwes/gh-pages-deploy-action@v1.1
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
source-directory: out
build-command: yarn build && yarn export
deploy-branch: gh-pages
custom-domain: ferdium.org
4 changes: 1 addition & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
const path = require("path");
const isProd = process.env.NODE_ENV === "production"

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
webpack: (config) => {
config.resolve.modules.push(path.resolve("./"));

return config;
},
sassOptions: {
includePaths: [path.join(__dirname, "styles")],
},
assetPrefix: isProd ? "/website/" : "",
assetPrefix: './',
};

module.exports = nextConfig;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"dev": "next dev",
"build": "next build",
"postbuild": "next-sitemap --config sitemap-config.js",
"export": "next export",
"start": "next start",
"lint": "next lint",
"compile:sass": "sass --watch scss:assets/css"
Expand Down
9 changes: 5 additions & 4 deletions public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://ferdium.org</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-05-07T18:25:16.534Z</lastmod></url>
<url><loc>https://ferdium.org/downloads</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-05-07T18:25:16.534Z</lastmod></url>
<url><loc>https://ferdium.org/privacy-policy</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-05-07T18:25:16.534Z</lastmod></url>
<url><loc>https://ferdium.org/terms-of-service</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-05-07T18:25:16.534Z</lastmod></url>
<url><loc>https://ferdium.org</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-05-08T20:10:03.920Z</lastmod></url>
<url><loc>https://ferdium.org/download</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-05-08T20:10:03.920Z</lastmod></url>
<url><loc>https://ferdium.org/faq</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-05-08T20:10:03.920Z</lastmod></url>
<url><loc>https://ferdium.org/privacy-policy</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-05-08T20:10:03.920Z</lastmod></url>
<url><loc>https://ferdium.org/terms-of-service</loc><changefreq>daily</changefreq><priority>0.7</priority><lastmod>2022-05-08T20:10:03.920Z</lastmod></url>
</urlset>

0 comments on commit 0b200f4

Please sign in to comment.