Fixes #125
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: 'Compile SCSS' | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: 'Build CSS' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: 'Checkout Repo' | |
uses: 'actions/checkout@v2' | |
- name: 'Setup NodeJS' | |
uses: 'actions/setup-node@v1' | |
with: | |
node-version: 16 | |
- name: 'Install PNPM' | |
uses: 'pnpm/[email protected]' | |
with: | |
version: 6.0.2 | |
- name: 'Clean install of dependencies' | |
run: 'pnpm i' | |
- name: 'Run build script' | |
run: 'pnpm build' | |
- name: 'Copy powercord_manifest.json' | |
run: 'cp powercord_manifest.json dist/powercord_manifest.json' | |
- name: 'Deploy' | |
uses: 'peaceiris/actions-gh-pages@v3' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: 'deploy' | |
publish_dir: './dist' |