2024-01-17 17:27:03 +07:00
|
|
|
# This is a basic workflow to help you get started with the GitHub Auto-Release on Commit Action.
|
|
|
|
|
|
|
|
name: AutoRelease
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-01-17 17:30:55 +07:00
|
|
|
branches: [main]
|
2024-01-17 17:27:03 +07:00
|
|
|
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
|
|
jobs:
|
|
|
|
# This workflow contains a single job called "build"
|
|
|
|
release:
|
|
|
|
# The type of runner that the job will run on
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '18.x'
|
2024-01-17 17:55:25 +07:00
|
|
|
cache: 'yarn'
|
2024-01-17 17:27:03 +07:00
|
|
|
- name: Install dependencies NUI
|
2024-01-17 17:34:27 +07:00
|
|
|
working-directory: ./web
|
|
|
|
run: yarn install --frozen-lockfile
|
2024-01-17 17:27:03 +07:00
|
|
|
- name: Build Bundles
|
2024-01-17 17:34:27 +07:00
|
|
|
working-directory: ./web
|
2024-01-17 17:27:03 +07:00
|
|
|
run: yarn build
|
2024-01-17 17:55:25 +07:00
|
|
|
- name: Zip Folder
|
|
|
|
run: zip -r ${{ github.event.repository.name }}.zip . -x ".git/*" ".github/*" "phpcs.xml" "composer.json" "composer.lock" ".gitignore" ".vscode/*" "node_modules/*"
|
2024-01-17 17:44:20 +07:00
|
|
|
- uses: 'marvinpinto/action-automatic-releases@latest'
|
2024-01-17 17:27:03 +07:00
|
|
|
with:
|
2024-01-17 17:44:20 +07:00
|
|
|
repo_token: '${{ secrets.GITHUB_TOKEN }}'
|
2024-01-17 17:45:44 +07:00
|
|
|
automatic_release_tag: 'latest'
|
2024-01-17 17:44:20 +07:00
|
|
|
prerelease: false
|
|
|
|
files: |
|
2024-01-17 17:55:25 +07:00
|
|
|
*.zip
|