feat: made responsive, many misc improvements #18
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: Build | |
on: | |
#schedule: | |
# * is a special character in YAML so you have to quote this string | |
#- cron: '30 0 * * *' | |
push: | |
branches: | |
- '**' # matches all branches | |
- '!gh-pages' # excludes gh-pages | |
jobs: | |
build-and-deploy: | |
name: Build and deploy (py-${{ matrix.python_version }}, ruby-${{ matrix.ruby_version }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby_version: ['2.7'] | |
python_version: ['3.9'] | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby_version }} | |
bundler-cache: true | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Install dependencies | |
run: | | |
make install | |
sudo npm install --global pug pug-cli | |
- name: Build | |
run: | | |
make build | |
touch build-superuser/.nojekyll | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
if: github.ref == 'refs/heads/master' | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: build-superuser # The folder the action should deploy. | |
git-config-name: GitHub Actions | |
git-config-email: [email protected] |