Qiita で CLI用アクセストークンを発行する.
Linux で以下のコマンドを実行
mkdir Qiita
cd Qiita/
ls -l
npm install @qiita/qiita-cli --save-dev
ls -l
npx qiita init
npx qiita login # Qiita の CLI用アクセストークンを指定
GitHib でリポジトリを作る(Public にする.Change repository visibility)
GitHub で Qiita の CLI用アクセストークンを Actions の Secrets に設定する
git init
git remote add origin <GitHubのリポジトリURL>
git fetch origin
git branch -M main
git pull origin main --allow-unrelated-histories
git add .
git commit -m "Merge GitHub and local Qiita repo"
git push -u origin main
echo "<!-- test -->" >> public/<どれかの記事>.md
git add public/<どれかの記事>.md
git commit -m "test: trigger workflow"
git push