Skip to content

Commit

Permalink
Add automated Github Action to Compile Assets on push.
Browse files Browse the repository at this point in the history
Signed-off-by: Sam <[email protected]>
  • Loading branch information
sampoyigi committed Jun 2, 2023
1 parent 8680f93 commit 71638ec
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/compile-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Compile Assets

on: [push]

jobs:
compile:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}

- uses: actions/setup-node@v3
with:
node-version: 16

- name: Install NPM dependencies
run: npm ci

- name: Compile assets
run: npm run prod

- name: Commit compiled files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Compile Assets
commit_options: '--no-verify --signoff'
file_pattern: assets/

0 comments on commit 71638ec

Please sign in to comment.