mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2024-11-19 01:40:29 +01:00
Add zip and remove unnecessary triggers
This commit is contained in:
parent
44aa383d63
commit
6ccf3c03d6
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -2,16 +2,14 @@ name: Artifact
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master, 'Release-*' ]
|
||||
tags: [ 'v*' ]
|
||||
release:
|
||||
types: [released]
|
||||
# Triggers the workflow only when merging pull request to the branches.
|
||||
pull_request:
|
||||
types: [closed]
|
||||
branches: [ master, 'Release-*' ]
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'Release version'
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -78,9 +76,15 @@ jobs:
|
||||
key: ${{ runner.os }}-backend-${{ github.sha }}
|
||||
|
||||
- name: Compress files
|
||||
run: tar -czf /tmp/rtlbuild.tar.gz frontend backend rtl.js package.json package-lock.json
|
||||
env:
|
||||
VERSION: "${{ github.event.release.tag_name || github.event.inputs.version || '' }}"
|
||||
run: |
|
||||
tar -czf /tmp/rtl-build-$VERSION.tar.gz frontend backend rtl.js package.json package-lock.json
|
||||
zip -r /tmp/rtl-build-$VERSION.zip frontend backend rtl.js package.json package-lock.json
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: rtl-build-${{ github.event.release.tag_name }}
|
||||
path: /tmp/rtlbuild.tar.gz
|
||||
name: rtl-build-${{ github.event.release.tag_name || github.event.inputs.version || '' }}
|
||||
path: |
|
||||
/tmp/rtl-build-${{ github.event.release.tag_name || github.event.inputs.version || '' }}.tar.gz
|
||||
/tmp/rtl-build-${{ github.event.release.tag_name || github.event.inputs.version || '' }}.zip
|
||||
|
Loading…
Reference in New Issue
Block a user