release amd, code
This commit is contained in:
parent
047174291b
commit
62572c41f8
2 changed files with 79 additions and 0 deletions
37
.gitea/workflows/release_amd.yml
Normal file
37
.gitea/workflows/release_amd.yml
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Outbag AMD Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
|
||||
|
||||
jobs:
|
||||
release-amd:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
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: Create Release
|
||||
id: gitea-release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
files: |
|
||||
upload/**
|
||||
api_key: '${{ secrets.RELEASE_TOKEN }}'
|
42
.gitea/workflows/release_code.yml
Normal file
42
.gitea/workflows/release_code.yml
Normal file
|
@ -0,0 +1,42 @@
|
|||
name: Outbag Code release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
release-amd:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
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: |
|
||||
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: Create Release
|
||||
id: gitea-release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
files: |
|
||||
upload/**
|
||||
api_key: '${{ secrets.RELEASE_TOKEN }}'
|
Loading…
Reference in a new issue