fix announcement #487
Workflow file for this run
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 | |
# Run this workflow every time a new commit pushed to your repository | |
on: | |
push: | |
jobs: | |
tests: | |
runs-on: ubuntu-20.04 | |
name: Build | |
steps: | |
# Checks out a copy of your repository on the ubuntu machine | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup npm | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r requirements.txt | |
- name: Tests | |
run: | | |
make test | |
- name: Deploy 🚀 # Deploy to pages | |
if: github.ref == 'refs/heads/master' | |
uses: JamesIves/[email protected] | |
with: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages # The branch the action should deploy to. | |
folder: dist # The folder the action should deploy. | |
clean: true # Automatically remove deleted files from the deploy branch |