Modify the publishing process

This commit is contained in:
a624669980 2021-09-30 15:22:05 +08:00
parent edea1f144a
commit dbc6a4265a

View file

@ -2,21 +2,21 @@
name: Build CasaOS
#on:
# repository_dispatch:
# workflow_dispatch:
# inputs:
# ssh:
# description: 'SSH connection to Actions'
# required: false
# default: 'false'
on:
push:
branches:
- 'main'
tags:
- 'v*'
repository_dispatch:
workflow_dispatch:
inputs:
ssh:
description: 'SSH connection to Actions'
required: false
default: 'false'
#on:
# push:
# branches:
# - 'main'
# tags:
# - 'v*'
env:
REPO_URL: https://github.com/IceWhaleTech/CasaOS.git
REPO_BRANCH: main
@ -53,8 +53,8 @@ jobs:
- name: Set enviroment for github-release
run: |
echo "VERSION=$(cat types/system.go | grep CURRENTVERSION | awk '$2 == "CURRENTVERSION"{print $4}' | sed 's/"//g')" >>$GITHUB_ENV
echo "BODY=$(cat types/system.go | grep BODY | awk -F= '{print $2}' | sed 's/"//g')" >>$GITHUB_ENV
echo "VERSION=$(cat /workdir/casa/types/system.go | grep CURRENTVERSION | awk '$2 == "CURRENTVERSION"{print $4}' | sed 's/"//g')" >>$GITHUB_ENV
echo "BODY=$(cat /workdir/casa/types/system.go | grep BODY | awk -F= '{print $2}' | sed 's/"//g')" >>$GITHUB_ENV
- name: Clone source code