Update info #31
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: Build distributable version | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build and push | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Config | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "xpple" | |
- name: Remove unwanted files | |
run: rm -rf .github .idea .vscode node_modules .gitignore package.json package-lock.json tsconfig.json | |
- name: Commit | |
run: | | |
git add -A -f | |
git commit -a -m "Update build branch" | |
- name: Publish | |
uses: ad-m/github-push-action@master | |
with: | |
force: true | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: dist |