Skip to content

[Olympus News Manager Discord bot] Update Olympus news #328

[Olympus News Manager Discord bot] Update Olympus news

[Olympus News Manager Discord bot] Update Olympus news #328

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v4
- name: Generate olympusnews/index.txt
run: |
pushd olympusnews
rm -f index.txt
for f in *; do
echo $f >> index.txt
done
popd
- name: git <setup> && git add && git commit
run: |
git config user.name '0x0ade'\''s bot'
git config user.email '[email protected]'
git branch -d gh-pages || true
git checkout -b gh-pages
git add .
git commit -m 'Automatically update gh-pages'
- name: git push
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.PUSH_TOKEN }}
branch: gh-pages
force: true