Modify the publishing process
This commit is contained in:
parent
edea1f144a
commit
dbc6a4265a
1 changed files with 16 additions and 16 deletions
32
.github/workflows/casa.yml
vendored
32
.github/workflows/casa.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue