Fix schedule #19
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: deploy | |
on: | |
push: | |
branches: | |
- jekyll | |
jobs: | |
github-pages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_PAGES_GITHUB_TOKEN }} | |
ref: jekyll | |
- name: setup-ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
os: ubuntu-latest | |
ruby-version: '3.1.2' | |
bundler-cache: true | |
- name: jekyll build | |
run: bundle exec jekyll build | |
- name: deploy to gh-pages | |
run: | | |
cd ./_site | |
git init | |
git config user.name hackerspaceblumenau | |
git config user.email hackerspaceblumenau@gmail.com | |
git add . && git commit -m "Deploy github-pages" | |
git remote add origin https://rtancman:${{ secrets.GH_PAGES_GITHUB_TOKEN }}@github.com/HackerspaceBlumenau/blumenau-dev-day.git | |
git push origin master -f |