mirror of
https://github.com/Nezumi-2711/surCord.git
synced 2026-09-22 13:48:38 +00:00
Update build.yaml
This commit is contained in:
@@ -1 +1,30 @@
|
|||||||
placeholder
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_css:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout source Git branch
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Compile CSS from SCSS files
|
||||||
|
uses: gha-utilities/sass-build@v0.4.9
|
||||||
|
with:
|
||||||
|
source: src/_index.scss
|
||||||
|
destination: src/source.css
|
||||||
|
|
||||||
|
- name: Add and Commit changes to build branch
|
||||||
|
run: |
|
||||||
|
git config --local user.email 'action@github.com'
|
||||||
|
git config --local user.name 'GitHub Action'
|
||||||
|
git add .
|
||||||
|
git commit -m '[skip ci] Update compiled CSS files'
|
||||||
|
- name: Push changes
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
branch: ${{ github.ref }}
|
||||||
|
|||||||
Reference in New Issue
Block a user