Skip to content

Commit

Permalink
add hugo workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyr committed Mar 5, 2024
1 parent 8c4c1b9 commit 3fb9176
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 24 deletions.
99 changes: 99 additions & 0 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: trigger deploy pages on master

on:
# Runs on pushes targeting the default branch
push:
branches: ["markdowns"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

# Default to bash
defaults:
run:
shell: bash

jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.120.4
MARKDOWN_DIR: publish
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"

# pre-set content
- name: Checkout additional branch for Markdown files
uses: actions/checkout@v2
with:
ref: markdowns
path: temp

- name: Process Markdown files
run: |
# Process Markdown files here
# For example, add front matter and remove drafts
for file in temp/$MARKDOWN_DIR/*.md; do
sed -i '1s/^/---\n/' $file
sed -i '2s/^/draft: false\n---\n/' $file
done
- name: Move Markdown files to Hugo content directory
run: |
mkdir content/extra # cwd must contains content
mv temp/$MARKDOWN_DIR/*.md content/extra/ # Move processed Markdown files to Hugo content directory
rm -rf ./temp
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
91 changes: 67 additions & 24 deletions publish/topics.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ psychological projection

### status

do u wanna be famous?
2. do u wanna be famous?

- motivation
- existence
Expand All @@ -22,79 +22,122 @@ in what kind of ways?

### self-approval

would u rehersal before make a call? why?
3. would u rehearse what u are gonna say before making a call? why?

- socially been accepted
- confidence
- care about others

### Perfect day

what is a perfect day for u? what would u do on that perfect day?
4. what would constitute a "perfect" day for u?

- goals, aims, future, prospective
- positive atmosphere

### last time
when was the last time u sing to yourself? to others? / on your own? with someone else?

when was the last time u cry?
5. when did u last time sing to yourself? to someone else?

### hypothesis

after your 30s, which one you would like more to keep? body or mind?
6. after your 30s, which one you would like more to keep? body or mind?

- Rational or emotional
- outside or inside

### death

have u ever felt foreboding your ending of life? when and in what way?
7. Do u have secret hunch about how u will die?

### similarity

list 3 points of common part
8. Name 3 things we appear to have in common

### gratitude

what is most appriciate thing in your life?
9. what is most grateful thing in your life?

### passed life story: from possessed
- history

what would you like to change of your life?
10. what would you like to change of your life?

- describe yourself in 4min
11. describe yourself in 4min


- your biggest accomplishment in your life
15. your biggest accomplishment in your life

### future life story: to desired

- desire

what quality or power do u want if you will get at once you wake up tomorrow?
12. If you could wake up tomorrow having gained any quality or ability, what do u want?

- foresee

What would u like to know if you can see anything about yourself/life/truth in the future?
13. What would u like to know if you can get the truth of yourself/life/future?

- dream

Is there anything you want to do for a long time, but still not start? why?

(ask accomplishment here is better)
14. Is there anything you have dream of doing to do for a long time? why haven't u done it?

---

### relationship & memory

what is the most important/valuable in friendship?
16. what do u value most in friendship?

17. treasured memory

18. terrible memory

(make emotional waves)

---
second parts

### mean to u

20. friendship mean to u
21. What roles do love and affection play in your life?

[share perception]
22. Alternate sharing something you consider a positive characteristic of each other(5 points)

23. relation with families, and do u feel your childhood happier than others'?
24. relation with parents

### games - make sentence (statements)

- make 3 true statements start with 'we'

- complete sentence "I wish I had someone with whom I could share ..."


### reveal secret
- if u were going to be closer friend with each other, plz share what would be important for he/she to know.

- tell him/her which part do u like on him/her? (be very honest this time, say things that u might not say to say someone you've just met)
- your awkward moment in your life
- last time u cry in front of others? and by yourself?


[share perception]
- now tell him/her something that u like about them already.


### serious thing

what, if anything, is too serious to be joked about?

### pity/undone

- if u were to die tonight, without any opportunity to communicate with anyone, what would u most regret not having told someone? why haven't told them yet?

best memory
- if all your stuffs are in your house, and it's burning now, after families and pets saved, one last chance to get one thing out, which stuff would u take? why?

worst memory
- whose death in your family would you find most disturbing? why?

(wave)
### one last question

### ...
- share one problem of yourself, what would him/her handle it?
what do him/her think of the problem itself?

0 comments on commit 3fb9176

Please sign in to comment.