Run and publish #67
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: Run and publish | |
on: | |
schedule: | |
- cron: "0 0 1 * *" # monthly | |
workflow_dispatch: # to trigger manually | |
push: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/run_n_publish.yml' | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Rename env file | |
run: mv example.env .env | |
- name: Run it | |
run: bash ./ignfr2map.sh | |
- name: List temp | |
run: ls -R _temp/ | |
- name: List final output | |
run: ls -R final/ | |
- name: Set up Python | |
uses: actions/setup-python@v2.2.1 | |
with: | |
python-version: 3.8 | |
- name: Deploy to GitHub Pages | |
run: | | |
python -m pip install ghp-import | |
ghp-import --force --no-history --no-jekyll --push final |