WebHackersWeapons/.github/workflows/deploy.yml

37 lines
895 B
YAML
Raw Normal View History

2022-08-19 04:32:56 -04:00
name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
2022-08-19 10:28:23 -04:00
Deploy:
2022-08-19 04:32:56 -04:00
runs-on: ubuntu-latest
steps:
- 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
2022-08-19 04:37:56 -04:00
run: date > ./scripts/last_change
2022-08-19 04:32:56 -04:00
- name: Commit files
run: |
git config --local user.email "hahwul@gmail.com"
git config --local user.name "WHW"
2022-08-19 04:41:33 -04:00
git add README.md ./scripts/last_change
2022-10-07 11:23:38 -04:00
git add ./categorize/*
git commit -m "Deploy README.md and Categorize Docs"
2022-08-19 04:32:56 -04:00
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}