2024-01-02 01:12:05 +09:00
|
|
|
---
|
2024-07-23 23:49:33 +09:00
|
|
|
name: Continuous Deployment
|
2022-08-19 17:32:56 +09:00
|
|
|
on:
|
|
|
|
push:
|
2024-01-02 01:12:05 +09:00
|
|
|
branches: [main]
|
2022-08-19 17:32:56 +09:00
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
2024-07-23 23:49:33 +09:00
|
|
|
Contributors:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: wow-actions/contributors-list@v1
|
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
round: true
|
|
|
|
svgPath: images/CONTRIBUTORS.svg
|
2022-08-19 23:28:23 +09:00
|
|
|
Deploy:
|
2024-07-23 23:49:33 +09:00
|
|
|
needs: Contributors
|
2022-08-19 17:32:56 +09:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-01-02 01:12:05 +09:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Ruby
|
|
|
|
uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: 3.0
|
|
|
|
- name: Install dependencies
|
|
|
|
run: gem install erb yaml
|
|
|
|
- name: Run app
|
|
|
|
run: |
|
|
|
|
ruby ./scripts/erb.rb
|
|
|
|
- name: Make last_change
|
|
|
|
run: date > ./scripts/last_change
|
|
|
|
- name: Commit files
|
|
|
|
run: |
|
|
|
|
git config --local user.email "hahwul@gmail.com"
|
|
|
|
git config --local user.name "WHW"
|
|
|
|
git add README.md ./scripts/last_change
|
|
|
|
git add ./categorize/*
|
|
|
|
git commit -m "Deploy README.md and Categorize Docs"
|
|
|
|
- name: Push changes
|
|
|
|
uses: ad-m/github-push-action@master
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
branch: ${{ github.ref }}
|