feat: Allow blocking of overlays to be toggled #8
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 and Publish | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2.3.1 | |
- uses: actions/cache@v2 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: install | |
run: yarn | |
- name: check types | |
run: yarn tsc -p . --noEmit | |
- name: check style | |
run: yarn style --check | |
- name: build | |
run: yarn build | |
- name: Upload zipped distributables | |
uses: actions/upload-artifact@v2.2.3 | |
with: | |
# Artifact name | |
name: Distributables | |
# A file, directory or wildcard pattern that describes what to upload | |
path: | | |
chrome.zip | |
firefox.zip | |
src.zip | |
if-no-files-found: error | |
- name: Publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
FIREFOX_EMAIL: ${{ secrets.FIREFOX_EMAIL }} | |
FIREFOX_PASSWORD: ${{ secrets.FIREFOX_PASSWORD }} | |
FIREFOX_TOTP_SECRET: ${{ secrets.FIREFOX_TOTP_SECRET }} | |
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} | |
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} | |
GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }} | |
run: npx semantic-release |