feat: add Bootstrap #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |