From 0ddf6287b56ef9d0afa11f0f5ac9cc916ff6ff50 Mon Sep 17 00:00:00 2001 From: Iucism <105166639+Iucism@users.noreply.github.com> Date: Sat, 23 Jul 2022 12:28:39 -0400 Subject: [PATCH] automation test2 --- .github/workflows/build.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..9063c7c --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,30 @@ +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 }}