Add cashback and natural mall max #150
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: NodeJS with Webpack | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build | |
run: | | |
npm install | |
npx webpack | |
- run: | | |
git config user.name "Build Script" | |
git config user.email "<>" | |
git fetch --all | |
cp data built/data -r | |
git switch release | |
rm -r scripts/ | |
rm -r data/ | |
mv built/scripts scripts | |
mv built/data data | |
git add scripts/ | |
git add data/ | |
git commit -m "Build Mafia files for commit $GITHUB_SHA" | |
git push origin release |