mirror of
https://github.com/plankanban/planka.git
synced 2025-08-05 13:35:27 +02:00
parent
ad7fb51cfa
commit
2ee1166747
1557 changed files with 76832 additions and 47042 deletions
52
.github/workflows/build-and-publish-release-package.yml
vendored
Normal file
52
.github/workflows/build-and-publish-release-package.yml
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
name: Build and Publish Release Package
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
build-and-publish-release-package:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Update npm
|
||||
run: npm install npm --global
|
||||
|
||||
- name: Install client dependencies
|
||||
run: npm install --omit=dev
|
||||
working-directory: ./client
|
||||
|
||||
- name: Build client
|
||||
run: DISABLE_ESLINT_PLUGIN=true npm run build
|
||||
working-directory: ./client
|
||||
|
||||
- name: Include server into dist
|
||||
run: mv server dist
|
||||
|
||||
- name: Include built client into dist
|
||||
run: |
|
||||
mv dist/* ../dist/public
|
||||
cp ../dist/public/index.html ../dist/views
|
||||
working-directory: ./client
|
||||
|
||||
- name: Include LICENSE.md, README.md, SECURITY.md into dist
|
||||
run: mv LICENSE.md README.md SECURITY.md dist
|
||||
|
||||
- name: Create release package
|
||||
run: |
|
||||
mv dist planka
|
||||
zip -r planka-prebuild.zip planka
|
||||
|
||||
- name: Publish release package
|
||||
run: gh release upload ${{ github.event.release.tag_name }} planka-prebuild.zip
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
Loading…
Add table
Add a link
Reference in a new issue