lr_boilerplate/.github/workflows/autorelease.yml
LORAX b91f95d296
Some checks failed
AutoRelease / release (push) Failing after 3m8s
modified: .github/workflows/autorelease.yml
2024-05-31 05:32:48 +07:00

39 lines
1.3 KiB
YAML

# This is a basic workflow to help you get started with the GitHub Auto-Release on Commit Action.
name: AutoRelease
on:
push:
branches: [main]
# 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"
- name: Install dependencies NUI
working-directory: ./web
run: npm install --frozen-lockfile
- name: Build UI
working-directory: ./web
run: npm build
- name: Zip Folder
run: zip -r ${{ github.event.repository.name }}.zip config.lua fxmanifest.lua impl.lua main.lua README.md LICENSE web/build/* locales/* client/* server/*
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: "${{ github.event.head_commit.message }}"
automatic_release_tag: "latest"
prerelease: false
files: |
*.zip