-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (31 loc) · 1.08 KB
/
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
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Configure Git for GitHub
run: |
git config --global user.name "BSides Groningen"
git config --global user.email "[email protected]"
- uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
submodules: true
- name: Set up Hugo
env:
HUGO_VERSION: 0.132.2
run: |
echo "installing hugo $HUGO_VERSION"
curl -sL -o /tmp/hugo.deb \
https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb && \
sudo dpkg -i /tmp/hugo.deb && \
rm /tmp/hugo.deb
- name: Publish
env:
REPOSITORY: "https://bsidesgrunn:${{ secrets.GITHUB_TOKEN }}@github.com/bsidesgrunn/bsidesgrunn.org.git"
run: ./publish.sh