This commit is contained in:
parent
047174291b
commit
71946ef185
5 changed files with 125 additions and 1 deletions
11
.gitea/workflows/action_push.yml
Normal file
11
.gitea/workflows/action_push.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
name: Push Action
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Testing
|
||||||
|
uses: ./.gitea/workflows/test.yml
|
||||||
|
|
25
.gitea/workflows/action_tag.yml
Normal file
25
.gitea/workflows/action_tag.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Tag Action
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Testing
|
||||||
|
uses: ./.gitea/workflows/test.yml
|
||||||
|
release_code:
|
||||||
|
needs: test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Building Code
|
||||||
|
uses: ./.gitea/workflows/release_code.yml
|
||||||
|
release_amd:
|
||||||
|
needs: [test, release_code]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Building AMD
|
||||||
|
uses: ./.gitea/workflows/release_amd.yml
|
39
.gitea/workflows/release_amd.yml
Normal file
39
.gitea/workflows/release_amd.yml
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
name: Outbag AMD Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
secrets:
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release-amd:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
npm run bundleRelease
|
||||||
|
|
||||||
|
- name: Build AMD
|
||||||
|
run: |
|
||||||
|
npm run build-amd
|
||||||
|
mkdir upload
|
||||||
|
cp build/bin/* upload
|
||||||
|
- name: setup go
|
||||||
|
uses: https://github.com/actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '>=1.20.1'
|
||||||
|
- name: Create Release AMD
|
||||||
|
id: gitea-release-amd
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
upload/**
|
||||||
|
api_key: '${{ secrets.RELEASE_TOKEN }}'
|
46
.gitea/workflows/release_code.yml
Normal file
46
.gitea/workflows/release_code.yml
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
name: Outbag Code release
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
secrets:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release-code:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
npm run prepublish
|
||||||
|
|
||||||
|
- name: Build Code
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install zip tar -y
|
||||||
|
mkdir outbag_server
|
||||||
|
mkdir outbag_server/dist
|
||||||
|
mkdir upload
|
||||||
|
cp -r dist/* outbag_server/dist
|
||||||
|
cp package.json outbag_server
|
||||||
|
cp package-lock.json outbag_server
|
||||||
|
cp readme.md outbag_server
|
||||||
|
zip -r upload/OutbagServer.zip outbag_server/*
|
||||||
|
tar -czvf upload/OutbagServer.tar.gz outbag_server/*
|
||||||
|
- name: setup go
|
||||||
|
uses: https://github.com/actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '>=1.20.1'
|
||||||
|
- name: Create Release Code
|
||||||
|
id: gitea-release-code
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
upload/**
|
||||||
|
api_key: '${{ secrets.RELEASE_TOKEN }}'
|
|
@ -1,6 +1,9 @@
|
||||||
name: Outbag Tests
|
name: Outbag Tests
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
secrets:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
Loading…
Reference in a new issue