added scripts #97
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
on: push | ||
name: Release | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' | ||
steps: | ||
- name: Install | ||
uses: actions/checkout@v3 | ||
uses: actions/setup-node@v3 | ||
Check failure on line 11 in .github/workflows/ci.yml GitHub Actions / ReleaseInvalid workflow file
|
||
with: | ||
node-version: ${{ matrix.node-version }} | ||
run: npm i | ||
- name: Build | ||
id: build | ||
run: npm run build | ||
env: | ||
supabase: ${{ secrets.supabase }} | ||
- name: Docs | ||
env: | ||
supabase: ${{ github.secrets.supabase }} | ||
id: build | ||
run: npm run build | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN_KEY }} | ||
BRANCH: gh-pages | ||
FOLDER: docs/.vuepress/dist |