Skip to content

Add Railway Deployment Guide for Gin #129

Add Railway Deployment Guide for Gin

Add Railway Deployment Guide for Gin #129

Workflow file for this run

name: Run Deploy
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '20' ]
name: Node ${{ matrix.node }} Setup
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install node module
run: |
npm install -D --save autoprefixer
npm install -D --save postcss-cli
npm audit fix
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.125.4'
extended: true
- name: Build
run: |
hugo --minify
echo 'gin-gonic.com' > public/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public