generated from jthegedus/awesome-list-template
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (31 loc) · 953 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Publish
on:
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: HackSocNotts/hacksocnotts.github.io
path: './hacksocnotts.github.io/'
token: ${{ secrets.PERSONAL_TOKEN }}
- uses: actions/checkout@v2
with:
path: './awesome-talks/'
- run: ./awesome-talks/add-yaml.sh > ./hacksocnotts.github.io/content/awesome-talks.md
- uses: EndBug/add-and-commit@v7
with:
message: 'Updated Events Page'
add: 'content/awesome-talks.md --force'
cwd: './hacksocnotts.github.io/'
push: false
- name: Push changes
run: |
cd ./hacksocnotts.github.io/
git push origin main
env:
username: ${{ secrets.USERNAME }}