Merge pull request #25 from nordic-rse/rantahar-10-2024-conference-pl… #113
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
# Created as part of the git-calendar project | |
# License of this file: CC-0 (=public domain) | |
name: Generate calendar | |
on: [push, pull_request] | |
env: | |
DEFAULT_BRANCH: refs/heads/main | |
jobs: | |
calendar: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Info | |
env: # security, prevent injections | |
github_ref: ${{ github.ref }} | |
run: | | |
echo "${github_ref}" | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: build | |
run: | | |
./build.sh "--edit-link=https://github.com/$GITHUB_REPOSITORY" | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.event_name == 'push' && github.ref == env.DEFAULT_BRANCH }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./out/ | |
force_orphan: true |