Merge branch 'develop' #114
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: Release Main Zip | |
on: | |
push: | |
branches: [main, master] | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- 'Dockerfile' | |
- 'docker-compose.yml' | |
- '.gitignore' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
issues: write | |
jobs: | |
build: | |
timeout-minutes: 120 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
- name: 'TODO to Issue' | |
uses: 'alstr/todo-to-issue-action@v4' | |
with: | |
IDENTIFIERS: '[{"name": "FEATURE", "labels": ["enhancement"]}, {"name": "BUG", "labels": ["bug"]}]' | |
ISSUE_TEMPLATE: '**Describe the reason of this issue**\n{{ body }}\n\nThe issue is present here:\n\n{{ snippet }}' | |
- name: Build static files | |
run: npm run build --if-present | |
- name: Zip Release | |
uses: TheDoctor0/[email protected] | |
with: | |
type: 'zip' | |
filename: 'release.zip' | |
directory: './dist' | |
path: '.' | |
- name: Upload Release | |
uses: ncipollo/[email protected] | |
with: | |
tag: 'Admin' | |
artifacts: './dist/release.zip' | |
allowUpdates: true | |
replacesArtifacts: true | |
body: | | |
${{ github.event.head_commit.message }} | |
token: ${{ secrets.GITHUB_TOKEN }} |