mirror of
https://github.com/andwati/andwati.com.git
synced 2026-12-01 04:38:47 +00:00
@@ -0,0 +1,65 @@
|
|||||||
|
name: Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
concurrency: ci-${{ github.ref }}
|
||||||
|
|
||||||
|
#env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
|
||||||
|
#BUNDLE_GEMFILE: ${{ github.workspace }}/ronn-ng/Gemfile
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Clone ronn-ng repository
|
||||||
|
uses: GuillaumeFalourd/[email protected]
|
||||||
|
with:
|
||||||
|
depth: 1
|
||||||
|
branch: 'main'
|
||||||
|
owner: 'andwati'
|
||||||
|
repository: 'ronn-ng'
|
||||||
|
|
||||||
|
- name: Install Ruby
|
||||||
|
uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: '3.2'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
|
with:
|
||||||
|
packages: rename
|
||||||
|
|
||||||
|
- name: Make HTML directory
|
||||||
|
run: mkdir public
|
||||||
|
|
||||||
|
- name: Build site files
|
||||||
|
run: |
|
||||||
|
cd ronn-ng
|
||||||
|
bundle install --with development
|
||||||
|
bundle exec bin/ronn \
|
||||||
|
--html \
|
||||||
|
--output-dir="../public/" \
|
||||||
|
--manual="General Commands Manual" \
|
||||||
|
--section=1 \
|
||||||
|
--name="andwati.github.io" \
|
||||||
|
../md/*.md
|
||||||
|
|
||||||
|
- name: Rename HTML files
|
||||||
|
run: rename 's/\.1//' public/*.html
|
||||||
|
|
||||||
|
# - name: Add CNAME file
|
||||||
|
# run: echo "danh.computer" > public/CNAME
|
||||||
|
|
||||||
|
- name: Deploy site
|
||||||
|
uses: s0/git-publish-subdir-action@develop
|
||||||
|
env:
|
||||||
|
REPO: self
|
||||||
|
BRANCH: www
|
||||||
|
FOLDER: public
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
+2
-27
@@ -1,27 +1,2 @@
|
|||||||
# Bundler cache
|
man/
|
||||||
.bundle
|
public/
|
||||||
vendor
|
|
||||||
Gemfile.lock
|
|
||||||
|
|
||||||
# Jekyll cache
|
|
||||||
.jekyll-cache
|
|
||||||
.jekyll-metadata
|
|
||||||
_site
|
|
||||||
|
|
||||||
# RubyGems
|
|
||||||
*.gem
|
|
||||||
|
|
||||||
# NPM dependencies
|
|
||||||
node_modules
|
|
||||||
package-lock.json
|
|
||||||
|
|
||||||
# IDE configurations
|
|
||||||
.idea
|
|
||||||
.vscode/*
|
|
||||||
!.vscode/settings.json
|
|
||||||
!.vscode/extensions.json
|
|
||||||
!.vscode/tasks.json
|
|
||||||
|
|
||||||
# Misc
|
|
||||||
_sass/dist
|
|
||||||
assets/js/dist
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
layout: home
|
|
||||||
# Index page
|
|
||||||
---
|
|
||||||
+32
@@ -0,0 +1,32 @@
|
|||||||
|
personal website
|
||||||
|
================
|
||||||
|
|
||||||
|
## SYNOPSIS
|
||||||
|
|
||||||
|
`andati` [_OPTIONS_]
|
||||||
|
<br>
|
||||||
|
`ian` [_OPTIONS_]
|
||||||
|
|
||||||
|
## OPTIONS
|
||||||
|
|
||||||
|
* `-h`, `--help`:
|
||||||
|
Prints a short help message and exits.
|
||||||
|
|
||||||
|
* `-v`, `--version`:
|
||||||
|
Prints version information and exits.
|
||||||
|
|
||||||
|
* `--email`=<u>ADDRESS</u>:
|
||||||
|
Specifies the email address of the site owner. The default is
|
||||||
|
[[email protected]](mailto:[email protected]).
|
||||||
|
|
||||||
|
* `--github`=<u>USERNAME</u>:
|
||||||
|
Specifies the GitHub username of the site owner. The default is
|
||||||
|
[andwati](https://github.com/andwati).
|
||||||
|
|
||||||
|
* `--employer`=<u>COMPANY</u>:
|
||||||
|
Specifies the current employer of the site owner. The default is
|
||||||
|
[null](null).
|
||||||
|
|
||||||
|
## SEE ALSO
|
||||||
|
|
||||||
|
2024-03-10 [Test Blog Post](https://danh.computer/test)
|
||||||
Reference in New Issue
Block a user