japl/.github/workflows/website.yml

34 lines
870 B
YAML
Raw Permalink Normal View History

2021-02-26 15:44:58 +01:00
# Automatically pushes the README to the website repo
name: Deploy website
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
2021-02-26 15:57:52 +01:00
push_readme:
2021-02-26 15:44:58 +01:00
runs-on: ubuntu-latest
steps:
2021-02-26 16:00:00 +01:00
- uses: actions/checkout@v2
2021-02-26 15:44:58 +01:00
- name: Configure git credentials
2021-02-26 16:01:11 +01:00
uses: OleksiyRudenko/gha-git-credentials@v2-latest
2021-02-26 15:44:58 +01:00
with:
2021-02-26 15:57:52 +01:00
global: true
2021-02-26 15:44:58 +01:00
email: github-action@users.noreply.github.com
name: GitHub Action
actor: github.actor
2021-02-26 15:57:52 +01:00
token: '${{ secrets.GITHUB_TOKEN }}'
2021-02-26 15:44:58 +01:00
- name: Push README to japl-lang.github.io
run: |
git clone https://github.com/japl-lang/japl-lang.github.io
cd japl-lang.github.io
cp ../README.md .
git add README.md
git commit -m "Actions: Update README"
git push