mirror of
https://git.hackliberty.org/Awesome-Mirrors/WebHackersWeapons.git
synced 2024-08-21 06:38:56 -06:00
36 lines
844 B
YAML
36 lines
844 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
Deploy:
|
|
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
|
|
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 commit -m "Deploy README.md"
|
|
- name: Push changes
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: ${{ github.ref }}
|