summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md38
-rw-r--r--.github/ISSUE_TEMPLATE/feature_request.md20
-rw-r--r--.github/workflows/only-build.yaml36
-rw-r--r--.github/workflows/preview.yaml56
-rw-r--r--.github/workflows/production.yaml57
5 files changed, 207 insertions, 0 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..dd84ea7
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,38 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+**Describe the bug**
+A clear and concise description of what the bug is.
+
+**To Reproduce**
+Steps to reproduce the behavior:
+1. Go to '...'
+2. Click on '....'
+3. Scroll down to '....'
+4. See error
+
+**Expected behavior**
+A clear and concise description of what you expected to happen.
+
+**Screenshots**
+If applicable, add screenshots to help explain your problem.
+
+**Desktop (please complete the following information):**
+ - OS: [e.g. iOS]
+ - Browser [e.g. chrome, safari]
+ - Version [e.g. 22]
+
+**Smartphone (please complete the following information):**
+ - Device: [e.g. iPhone6]
+ - OS: [e.g. iOS8.1]
+ - Browser [e.g. stock browser, safari]
+ - Version [e.g. 22]
+
+**Additional context**
+Add any other context about the problem here.
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 0000000..bbcbbe7
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,20 @@
+---
+name: Feature request
+about: Suggest an idea for this project
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+**Is your feature request related to a problem? Please describe.**
+A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
+
+**Describe the solution you'd like**
+A clear and concise description of what you want to happen.
+
+**Describe alternatives you've considered**
+A clear and concise description of any alternative solutions or features you've considered.
+
+**Additional context**
+Add any other context or screenshots about the feature request here.
diff --git a/.github/workflows/only-build.yaml b/.github/workflows/only-build.yaml
new file mode 100644
index 0000000..46ee60b
--- /dev/null
+++ b/.github/workflows/only-build.yaml
@@ -0,0 +1,36 @@
+name: only-build
+on:
+ workflow_dispatch:
+ branches:
+ - master
+ schedule:
+ - cron: '0 3 * * *'
+
+jobs:
+ build-hugo:
+ runs-on: ubuntu-latest
+ concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ steps:
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: 'latest'
+ extended: true
+
+ - name: Setup Go
+ uses: actions/setup-go@v4.0.0
+ with:
+ go-version: '^1.21'
+
+ - name: SetUp Env
+ run: hugo new site testenv
+
+ - name: Set theme
+ uses: actions/checkout@v3
+ with:
+ path: ./testenv/themes/hugo-theme-shell
+
+ - name: Build
+ run: hugo --minify -t hugo-theme-shell
+ working-directory: ./testenv
diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml
new file mode 100644
index 0000000..fd900ae
--- /dev/null
+++ b/.github/workflows/preview.yaml
@@ -0,0 +1,56 @@
+name: preview
+env:
+ VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
+ VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
+on:
+ push:
+ branches-ignore:
+ - master
+ pull_request:
+
+jobs:
+ deploy-preview:
+ runs-on: ubuntu-latest
+ concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ steps:
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: 'latest'
+ extended: true
+
+ - name: Setup Go
+ uses: actions/setup-go@v4.0.0
+ with:
+ go-version: '^1.21'
+
+ - name: Install Vercel CLI
+ run: npm install --global vercel@latest
+
+ - name: SetUp Env
+ run: hugo new site testenv
+
+ - name: Set theme
+ uses: actions/checkout@v3
+ with:
+ path: ./testenv/themes/hugo-theme-shell
+
+ - name: Build
+ run: hugo --minify -t hugo-theme-shell
+ working-directory: ./testenv
+
+ - name: Pull Vercel Environment Information
+ run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} --cwd ./testenv
+
+ - name: Build Project Artifacts
+ run: vercel build --token=${{ secrets.VERCEL_TOKEN }} --cwd ./testenv
+
+ - name: Deploy Project Artifacts to Vercel
+ run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --cwd ./testenv
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./testenv/public
diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml
new file mode 100644
index 0000000..67efd41
--- /dev/null
+++ b/.github/workflows/production.yaml
@@ -0,0 +1,57 @@
+name: production
+env:
+ VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
+ VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ deploy-production:
+ runs-on: ubuntu-latest
+ concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ steps:
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: 'latest'
+ extended: true
+
+ - name: Setup Go
+ uses: actions/setup-go@v4.0.0
+ with:
+ go-version: '^1.21'
+
+ - name: Install Vercel CLI
+ run: npm install --global vercel@latest
+
+ - name: SetUp Env
+ run: hugo new site testenv
+
+ - name: Set theme
+ uses: actions/checkout@v3
+ with:
+ path: ./testenv/themes/hugo-theme-shell
+
+ - name: Build
+ run: hugo --minify -t hugo-theme-shell
+ working-directory: ./testenv
+
+ - name: Pull Vercel Environment Information
+ run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} --cwd ./testenv
+
+ - name: Build Project Artifacts
+ run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} --cwd ./testenv
+
+ - name: Deploy Project Artifacts to Vercel
+ if: ${{ github.ref == 'refs/heads/master' }}
+ run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} --cwd ./testenv
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ if: ${{ github.ref == 'refs/heads/master' }}
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./testenv/public