mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
websoft9
This commit is contained in:
parent
4948e30e18
commit
0220ff9afa
3 changed files with 41 additions and 55 deletions
77
.github/workflows/upload_artifact.yml
vendored
77
.github/workflows/upload_artifact.yml
vendored
|
@ -16,25 +16,34 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
name: Check out code
|
name: Check out code
|
||||||
|
|
||||||
- name: Read Plugin Version
|
- name: Version convert
|
||||||
id: update_data
|
id: convert_version
|
||||||
run: |
|
run: |
|
||||||
version=$(jq -r '.version' version.json)
|
version=$(jq -r '.version' version.json)
|
||||||
real_version=${version%%-*}
|
version_core=${version%%-*}
|
||||||
echo "VERSION=$real_version" >> $GITHUB_ENV
|
echo "VERSION=$version" >> $GITHUB_OUTPUT
|
||||||
echo "RC_VERSION=$version" >> $GITHUB_ENV
|
echo "VERSION_CORE=$version_core" >> $GITHUB_OUTPUT
|
||||||
|
if [[ $version == *-* ]]; then
|
||||||
|
echo "rc release version"
|
||||||
|
echo "CHANNEL=dev" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "release version"
|
||||||
|
echo "CHANNEL=release" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Update CHANGELOG.md
|
||||||
|
id: update_data
|
||||||
|
run: |
|
||||||
changelog=$(cat changelog_latest.md)
|
changelog=$(cat changelog_latest.md)
|
||||||
echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
|
echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
|
||||||
echo "$changelog" >> $GITHUB_OUTPUT
|
echo "$changelog" >> $GITHUB_OUTPUT
|
||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
current_date=$(date +%Y-%m-%d)
|
||||||
if [[ $version == *-* ]]; then
|
printf "## ${{ steps.convert_version.outputs.VERSION }} release on $current_date\n$changelog\n$(cat CHANGELOG.md)" > temp.txt
|
||||||
echo "release version"
|
mv temp.txt CHANGELOG.md
|
||||||
echo "::set-output name=release::false"
|
|
||||||
else
|
- name: Create Zip Archive
|
||||||
echo "rc release version"
|
run: |
|
||||||
echo "::set-output name=release::true"
|
|
||||||
fi
|
|
||||||
mkdir websoft9 artifacts
|
mkdir websoft9 artifacts
|
||||||
cp -r docker websoft9
|
cp -r docker websoft9
|
||||||
cp -r cockpit websoft9
|
cp -r cockpit websoft9
|
||||||
|
@ -44,19 +53,18 @@ jobs:
|
||||||
cp -r systemd websoft9
|
cp -r systemd websoft9
|
||||||
cp *.md websoft9
|
cp *.md websoft9
|
||||||
cp version.json websoft9
|
cp version.json websoft9
|
||||||
zip -r websoft9-$real_version.zip websoft9
|
zip -r websoft9-${{ steps.convert_version.outputs.VERSION_CORE }}.zip websoft9
|
||||||
cp websoft9-$real_version.zip artifacts
|
cp websoft9-${{ steps.convert_version.outputs.VERSION_CORE }}.zip artifacts
|
||||||
cp install/install.sh artifacts
|
cp install/install.sh artifacts
|
||||||
cp version.json artifacts
|
cp version.json artifacts
|
||||||
cp CHANGELOG.md artifacts
|
cp CHANGELOG.md artifacts
|
||||||
cp artifacts/websoft9-$real_version.zip artifacts/websoft9-latest.zip
|
cp artifacts/websoft9-${{ steps.convert_version.outputs.VERSION_CORE }}.zip artifacts/websoft9-latest.zip
|
||||||
|
|
||||||
- name: Upload To Azure Blob
|
- name: Upload To Azure Blob
|
||||||
uses: LanceMcCarthy/Action-AzureBlobUpload@v2
|
uses: LanceMcCarthy/Action-AzureBlobUpload@v2
|
||||||
if: ${{ steps.update_data.outputs.release == 'false' }}
|
|
||||||
with:
|
with:
|
||||||
connection_string: ${{ secrets.AZURE_STORAGE_ARTIFACT }}
|
connection_string: ${{ secrets.AZURE_STORAGE_ARTIFACT }}
|
||||||
container_name: dev
|
container_name: ${{ steps.convert_version.outputs.CHANNEL }}
|
||||||
source_folder: artifacts/
|
source_folder: artifacts/
|
||||||
destination_folder: ./websoft9
|
destination_folder: ./websoft9
|
||||||
delete_if_exists: true
|
delete_if_exists: true
|
||||||
|
@ -64,33 +72,12 @@ jobs:
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: ${{ steps.update_data.outputs.release == 'false' }}
|
|
||||||
with:
|
with:
|
||||||
files: /*
|
files: |
|
||||||
tag_name: ${{ env.RC_VERSION }}
|
version.json
|
||||||
title: Release-${{ env.RC_VERSION }}
|
CHANGELOG.md
|
||||||
|
tag_name: ${{ steps.convert_version.outputs.VERSION }}
|
||||||
|
title: Release-${{ steps.convert_version.outputs.VERSION }}
|
||||||
body: ${{ steps.update_data.outputs.CHANGELOG }}
|
body: ${{ steps.update_data.outputs.CHANGELOG }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
- name: Upload To Azure Blob
|
|
||||||
uses: LanceMcCarthy/Action-AzureBlobUpload@v2
|
|
||||||
if: ${{ steps.update_data.outputs.release == 'true' }}
|
|
||||||
with:
|
|
||||||
connection_string: ${{ secrets.AZURE_STORAGE_ARTIFACT }}
|
|
||||||
container_name: release
|
|
||||||
source_folder: artifacts/
|
|
||||||
destination_folder: ./websoft9
|
|
||||||
delete_if_exists: true
|
|
||||||
fail_if_source_empty: true
|
|
||||||
|
|
||||||
- name: Create Release
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
if: ${{ steps.update_data.outputs.release == 'true' }}
|
|
||||||
with:
|
|
||||||
files: /*
|
|
||||||
tag_name: ${{ env.VERSION }}
|
|
||||||
title: Release-${{ env.VERSION }}
|
|
||||||
body: ${{ steps.update_data.outputs.CHANGELOG }}
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
|
@ -1,3 +1,2 @@
|
||||||
1. gitea,myapps,appstore update
|
1. improve all plugins githubaction
|
||||||
2. apphub domains
|
2. install plugin by shell
|
||||||
3. apphub docs nginx config
|
|
14
version.json
14
version.json
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"version": "0.8.29",
|
"version": "0.8.30-rc1",
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"portainer": "0.0.7",
|
"portainer": "0.0.8",
|
||||||
"nginx": "0.0.5",
|
"nginx": "0.0.6",
|
||||||
"gitea": "0.0.2",
|
"gitea": "0.0.3",
|
||||||
"myapps": "0.0.9",
|
"myapps": "0.1.0",
|
||||||
"appstore": "0.0.8",
|
"appstore": "0.0.9",
|
||||||
"settings": "0.0.5",
|
"settings": "0.0.6",
|
||||||
"navigator": "0.5.10"
|
"navigator": "0.5.10"
|
||||||
},
|
},
|
||||||
"OS": {
|
"OS": {
|
||||||
|
|
Loading…
Reference in a new issue