feat: add server configuration (#39) #2
Workflow file for this run
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
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
working-directory: ui | |
- name: Remove dist entry from .gitignore | |
run: sed -i '/dist/d' ui/.gitignore | |
- run: npm run build | |
working-directory: ui | |
- name: Add commit, tag and push changes | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "[email protected]" | |
git add ./ui | |
git commit -am "feat: adding generated distributable assets" | |
NEW_TAG=$(echo "${{ github.ref }}" | sed 's#^refs/tags/\(.*\)$#ui/\1#') | |
echo "Tagging new version $NEW_TAG" | |
git tag $NEW_TAG | |
git push origin $NEW_TAG |